jax wrote:
> Thanks it worked, I changed it to
> 
>                 if(!item.contains("100%")) {
>                       tv.setTextColor(Color.RED);
>                 }
>                 else {
>                       tv.setTextColor(Color.BLACK);
>                 }
> 
> but I still don't understand why...
> 
> Do you know any sites that explain about recycling views?

http://commonsware.com/Android/excerpt.pdf

That is an excerpt from one of my books that talks about the process.

Remember that the view you are recycling once held a row. Android does
not somehow magically reset those rows to their original look. Hence, if
you changed the color before, you may have to change it back.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Consulting/App Development: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to