Skip to content Skip to sidebar Skip to footer

Textview Color Is Always White For Appcompatactivity

The text color of a TextView is always white on pre-Marshmallow devices. Even if I am using yellow or black in my XML, it is always white except on Marshmallow. At run time it will

Solution 1:

I finally got the answer of my problem actually I was using latest version of support library that was creating problem I compare everything with my colleague project as his app was working fine.. use this

compile'com.android.support:appcompat-v7:23.1.1'

studio will give popup a newer version is also available but don't use that as 24 version is in alpha stage.

Solution 2:

I faced a problem similar to this (in a widget, the text color was white if the average of RGB values is more than half the max value and black if not)

I was testing the app in a phone having the "high contrast text" feature enabled, so the solution was disabling it.

Post a Comment for "Textview Color Is Always White For Appcompatactivity"