The color of the text is determined by the style of the text view.
Setting the text color on a background won't change the text -- in
fact, since the background is probably just a Layout of some sort, it
probably doesn't even support the textColor property.

In other words, you need to style the text views themselves.

On Jun 20, 11:48 pm, Lisa <[email protected]> wrote:
> I am trying to change the background of my Preferences in my android
> app. By default, I have a background for the app as a whole, but I
> would like to have my Preferences to have a white background with
> black text.
>
> Unfortunately, when I try to change it via style,
>     <item name="android:background">@color/white</item>
>     <item name="android:textColor">@color/black</item>
>
> I go from no style -->http://i.stack.imgur.com/2b2Zi.png
>
> to this -->http://i.stack.imgur.com/rREyo.png
>
> when I wanted this (excuse my poor Photoshop job) 
> -->http://i.stack.imgur.com/fIXFF.png
>
> Can anyone help me?

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