Installing Android Textcolor is ignored for 5.0, but works for 6.0

Set the theme of the Android application as Theme.AppCompat.NoActionBar, but when I do

    android:textColor="@color/black"

for TextView in xml layout, color will not change.

However, everything works fine for Android 6.0 devices, but it doesn’t work for Android 5.0 or 4.0.3.

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="23" />

Setting the background color works fine. It is just the color of the text of different kinds.

compile 'com.android.support:support-v4:+'
compile 'com.android.support:appcompat-v7:+'
+4
source share
1 answer

If you are using version v24.0.0 alpha1 or + , go back to v23.2.1 . There is an error in adjusting the color of the text on buttons, text images, etc.

Using:

compile 'com.android.support:appcompat-v7:23.2.1'
+6
source

All Articles