Change the TextView's color using a ColorStateList, perhaps defined in XML:

http://developer.android.com/reference/android/content/res/ColorStateList.html

On Fri, Oct 15, 2010 at 1:15 PM, Bret Foreman <[email protected]> wrote:
> I have a LinearLayout with two views in it, an ImageView and a
> TextView. The ImageView resource is actually pulled from an xml
> selector in res/drawable so that it shows one of two drawables, call
> them selected.png and unselected.png. When I call
> LinearLayout.setSelect(false) the unselected.png drawable appears and
> the text is drawn in white. When I call LinearLayout.setSelect(true)
> the selected.png drawable appears and the text is drawn in black. How
> can I change this behavior of the TextView so that it always draws in
> 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
>



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

Android 2.2 Programming Books: http://commonsware.com/books

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