我是新手才接触android,我想改变listview 背景颜色和大小。
我不知道该怎么做。求教
我不知道该怎么做。求教
解决方案 »
- 在ActionBar中使用ifRoom隐藏的菜单项如何显示呢
- 关于android发送http请求的问题
- android里sqlite数据库的长度问题
- linux的eclipse开发android没法用手机运行
- 求求求、、小问题。求办法、
- android browser 中 webview 加载时 webview的位置问题
- DeskClock项目下的SystemProperties
- low memory no more background processes
- Android的View类能和EditText用到一起吗
- android: ImageView的setImageBitmap()方法
- qq慧眼谁用过?探讨一下实现过程
- Java的OutputStream的flush方法是不是会自动在末端加入结束符?
<ListView
android:layout_height="wrap_content"
android:id="@+id/listView1"
android:layout_width="match_parent"
android:background="@layout/list_corner_1"
android:layout_height="20px"
android:layout_width="30px"
>
</ListView>
要报错啊
2 你的背景是@layout,应该也会报错,编译时可能不会,但是运行时就会
android:layout_height="wrap_content" -->这个删掉
android:id="@+id/listView1"
android:layout_width="match_parent" -->这个删掉
android:background="@layout/list_corner_1" -->这个改成@drawable/你的图片名
android:layout_height="20px" -->最好写20dip
android:layout_width="30px" -->30dip
>
</ListView>
看你新手,全给你改下吧
背景这样写是可以,就是不知道你的list_corner_1.xml资源文件是怎么写的。