代码改变世界

[Android Tips] 9. framework notification layout font size

2014-08-09 15:32  shaobin0604  阅读(494)  评论(0编辑  收藏  举报

android 4.4 framework notification layout 相关字体大小

* title:   notification_title_text_size:  18dp
* content: notification_text_size:        14dp
* subtext: notification_subtext_size:     12dp

 

    <!-- Notification content styles -->
    <style name="TextAppearance.StatusBar.EventContent">
        <item name="android:textColor">#999999</item>
        <item name="android:textSize">@dimen/notification_text_size</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Title">
        <item name="android:textColor">#ffffff</item>
        <item name="android:fontFamily">sans-serif-light</item>
        <item name="android:textSize">@dimen/notification_title_text_size</item>
        <item name="android:textStyle">bold</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Line2">
        <item name="android:textSize">@dimen/notification_subtext_size</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Info">
        <item name="android:textSize">@dimen/notification_subtext_size</item>
        <item name="android:textColor">#999999</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Time">
        <item name="android:textSize">@dimen/notification_subtext_size</item>
        <item name="android:textColor">#999999</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Emphasis">
        <item name="android:textColor">#CCCCCC</item>
    </style>