I created the following color state list in res/color/
textcolorstatelist.xml:

<selector xmlns:android="http://schemas.android.com/apk/res/android";>
  <item android:state_selected="true" android:color="#FFFFFFFF"/>
  <item android:state_selected="false" android:color="#FFFFFFFF"/>
</selector>

And set the text view like this:

textView.setTextColor(R.color.textcolorstatelist);

Now the text draws in black whether selected or not. Doesn't #FFFFFFFF
= white?

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