Skip to content Skip to sidebar Skip to footer

Why Is Textcolor In Android:textappearance Ignored?

I use android support library, which version I don not know because I do not know of a way how to check it. The problem I am facing that apparently the value for android:textColor

Solution 1:

Somewhere along the line, the wrong/default value for textColor is being picked up and applied. You can force the android:textColor that you define in android:textAppearance to be used by setting android:textColor="@null" in your XML for EditText. This should work for android:textColorHint as well.

(This reflects the accepted answer to this post.)

Solution 2:

Use

style="@style/TextAppearance.EditText"

instead of

android:textAppearance="@style/TextAppearance.EditText"

It should work!

Post a Comment for "Why Is Textcolor In Android:textappearance Ignored?"