I have meet this problem when I try to upgrade my app to compile with compileSdkVersion
23
Just as my title says, the TextView used android:textColor="@android:color/white"
no longer works.
I have tried to narrow down the cause by creating a simple testing app, and I have found that whenever my TextView has android:enabled="false"
, my android:textColor
is being ignored.
I think I am going to file a issue to Android Developer Preview, however, I would like to confirm whether it is my own problem.
Here is the TextView I used for testing
<TextView
android:enabled="false"
android:textColor="@android:color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:textSize="50sp"
android:gravity="center"
android:layout_centerInParent="true"/>
Edit:
I have created a very simple project on github with this problem, I have tested it on emulator with android 19, 21, 22, 33, and on my Moto G with android 5.0