Re: [android-developers] Re: Subclass of ArrayAdapter not working
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home