I have a couple of list views, one uses TextViews laid out with xml, the othe开发者_开发百科r uses a custom class derived from View. The default halloween color scheme is pretty ugly. How can I change the background and selection colors for the list elements.
Ideally, I'd like to be able to do this in code not xml, to handle the custom view.
Thanks, Gerry
How can I change the background and selection colors for the list elements.
android:background for the background of your row Views, android:listSelector for the ListView list selector.
加载中,请稍侯......
精彩评论