我是新手才接触android,我想改变listview 背景颜色和大小。
我不知道该怎么做。求教
我不知道该怎么做。求教
解决方案 »
- 安卓弹出对话框问题
- 如何调整下面的 xml使得第一行 的2个 textview能显示
- 求助 for循环问题
- 求高手帮忙写一个android JNI调用.so库的android主程序
- android gallery图像问题
- R.id.***时Eclipse就自动添加包import android.R;然后就会报错如下:activity_main cannot be resolved
- 不是Activity能用sharedPreferences吗?
- 在线求救 坐等大神 100分不吝啬!!!
- canvas空值
- ant不是内部命令或外部命令
- 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资源文件是怎么写的。