android listview set dynamically background color of views
- by Sephy
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