Search code examples
xmlandroid-5.0-lollipopandroid-styles

How to change Android Lollipop Overview/Recents/Multitasking textColor


How do you change the text color of your apps recents "card" in lollipop?

The following do not work:

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

enter image description here


Solution

  • After trial and error I found the answer.

    Android "auto generates" the white (or black) text based on primary color in your styles.xml. This is pretty lame of 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>