greg wrote:
> I've extended a TextView in a ListView to allow some added drawing.
> I'd like the added drawing to be clearly readable whether the ListView
> item's background is black (default) or yellow/orange (selected).  The
> TextView.onDraw() apparently changes the color of its drawn text based
> upon the ListView item's background.  However my added text currently
> stays the same color regardless of the background color.  How does
> TextView.onDraw() change the text color based upon background?  Is
> there an xor Paint option I'm overlooking?

You want to use a ColorStateList instead of a simple color.

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

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
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