How to Change Android Lollipop Review / Replays / Multitasking textColor

How do you change the text color of your “handout card” of your applications to candy?

The following actions do not :

<item name="android:textColorPrimary">#ffffff</item>
<item name="android:textColor">#171717</item>

enter image description here

+4
source share
1 answer

After trial and error, I found the answer.

Android “automatically generates” white (or black) text based on the primary color in yours styles.xml. It is rather inconvenient for Google to handle it this way, because using certain color backgrounds may still look good with white text.


resources / values ​​/ styles.xml

<style name="AppTheme" parent="Theme.Something">
    ...
    <item name="colorPrimary">@color/primary</item> <!-- Must be dark enough to make android generate white text -->
    ...
</style>
+1
source

All Articles