Search code examples
androidandroid-notificationsandroid-5.0-lollipop

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


Solution

  • 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>