Huy Duong Tu Huy Duong Tu - 1 year ago 121
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,

still sets the color of
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 Source

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>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download