Sunday, May 29, 2011

[android-developers] How do you deal with "skins" clashing with your UI?

I've run into a problem on Motoblur I am not exactly sure how to
solve.

I have a TextView that I want to look like a Spinner. I can set the
theme to android:Widget.Spinner, no problem, but the TextView insits
on messing around with the text color unless one is specifically set.
So I am giving it the normal Spinner text color, which is
textColorPrimaryInverse.

The problem is that Motorola decide to customize the Spinner theme so
they actually us textColorPrimary (or similar) as the spinner text
color. Now, me setting it to textColorPrimaryInverse gives a black
text on dark background look which is, obviously, not too good for
readability.

So my question is:

1) How could I force TextView not to screw around with the color?

2) If that's not possible, how can I detect the presence of Motoblur
and set the text color conditionally?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment