If you want the textcolor to change to white when you select it...you should
use ColorStateList.

Say, you have a ColorStateList drawable  named textcolor:

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

you can set your textview's attributes to:

android:textColorHighlight="#00f"
android:textColor="@drawable/textcolor"

2008/9/2 Andrew Dupont <[EMAIL PROTECTED]>

>
> Despite its name, the global "textColorHighlight" attribute controls
> the color of the highlight itself, rather than the highlighted text.
> So if I've got gray text and a dark blue highlight color, it appears
> as gray on blue, and I can't make the selected text white on blue no
> matter what I try. None of the "inverse" text color styles work for
> this. Any ideas?
>
> Cheers,
> Andrew Dupont
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to