How to change colors for ListView, alternating row color?

Posted by Gerry on Stack Overflow See other posts from Stack Overflow or by Gerry
Published on 2010-04-24T00:00:59Z Indexed on 2010/04/24 0:03 UTC
Read the original article Hit count: 392

Filed under:
|
|
|

I have a couple of list views, one uses TextViews laid out with xml, the other 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

© Stack Overflow or respective owner

Related posts about android

Related posts about listview