Huy Duong Tu Huy Duong Tu - 27 days ago 19
Android Question

"@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.

Answer

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>