Quantcast
Channel: dynamically change TextView font color in ListView - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Nikita Beloglazov for dynamically change TextView font color in...

ListView reuses view, as you can see in getView you get convertView, and you only change color from white to gray. You never restore color back to white. I suggest if (item.Read()) {...

View Article


Answer by Ronnie for dynamically change TextView font color in ListView

Move the text and color setting code to before setting the tag. Try this code if (convertView == null) { holder = new ViewHolder(); convertView = mInflater.inflate(R.layout.main, null); holder.text =...

View Article


dynamically change TextView font color in ListView

I am binding an XML document to a custom adapter. All of the items in the list initially have a font color of white. One of the nodes in the XML document has an attribute that I am checking and if the...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>