Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"@android:style/TextAppearance.StatusBar.EventContent.Title" sets the color to white instead of grey in android L

Android L uses white background for notifications and grey color for the text on it. But, "@android:style/TextAppearance.StatusBar.EventContent.Title" still sets the color of TextView to same white color like in KitKat or previous versions. It should return the grey color used in new notification style of Android L.
How can I solve it? Thanks in advance.

like image 425
Huy Duong Tu Avatar asked Nov 11 '14 03:11

Huy Duong Tu


Video Answer


1 Answers

It seems android-L doesn't override "@android:style/TextAppearance.StatusBar.EventContent.Title", instead introduces new style

<style name="TextAppearance.Material.Notification.Title">
    <item name="textColor">@color/primary_text_default_material_light</item>
    <item name="textSize">@dimen/notification_title_text_size</item>
</style>
like image 153
Huy Duong Tu Avatar answered Sep 24 '22 00:09

Huy Duong Tu