android listview set dynamically background color of views
Posted
by Sephy
on Stack Overflow
See other posts from Stack Overflow
or by Sephy
Published on 2010-03-19T22:06:10Z
Indexed on
2010/03/19
22:11 UTC
Read the original article
Hit count: 1455
Hi everybody,
I know that there have quite a lot of answers to similar questions but I couldn't find any solution to my question, so new topic :
I'm creating a listview, with one basic view per row, my try is to change the background color of the view by .setbackgroundcolor, but nothing's doing the trick...
I define an array of color at the beginning of my resources and i'm trying to display it, I also tried to put the array in the class, write the color like #00FF00, int, and I wanted to try 0x...... but as my colors are in an array, I can't do 0x+myColorsArray[i] because Eclipse tells me that it's not a proper hex color... I'm getting a bit desperate... thanks for any help
© Stack Overflow or respective owner