由网友(时间煮雨我煮鱼@)分享简介:如何在android系统显示列表项(ListView控件)用不同颜色?How can i display list items(ListView) with different colors in android ?推荐答案创建你要显示的颜色和呼叫的整数值数组的 setBackgroundColor()方法在你的...
如何在android系统显示列表项(ListView控件)用不同颜色?
How can i display list items(ListView) with different colors in android ?
推荐答案
创建你要显示的颜色和呼叫的整数值数组的 setBackgroundColor()
方法在你的 getView()
或 bindView()
您自定义适配器的方法。
Create an Array of integer values of the color you wants to display and the call the setBackgroundColor()
method in your getView()
or bindView()
method of your Custom Adapter.
转寄此:与Android的的交替颜色创建一个ListView
Refer this : Creating a ListView with Alternating Colors in Android
相关推荐
最新文章