Loading core/res/res/layout/notification_template_header.xml +8 −11 Original line number Diff line number Diff line Loading @@ -17,27 +17,24 @@ <NotificationHeaderView xmlns:android="http://schemas.android.com/apk/res/android" android:theme="@style/Theme.Material.Notification" android:id="@+id/notification_header" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="@dimen/notification_header_height" android:clipChildren="false" android:paddingTop="@dimen/notification_header_padding_top" android:paddingBottom="@dimen/notification_header_padding_bottom" android:layout_marginBottom="5dp" android:paddingStart="@dimen/notification_content_margin_start" android:paddingEnd="16dp"> style="?attr/notificationHeaderStyle"> <com.android.internal.widget.CachingIconView android:id="@+id/icon" android:layout_width="@dimen/notification_header_icon_size" android:layout_height="@dimen/notification_header_icon_size" android:layout_width="?attr/notificationHeaderIconSize" android:layout_height="?attr/notificationHeaderIconSize" android:layout_marginEnd="3dp" /> <TextView android:id="@+id/app_name_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="3dp" android:layout_marginEnd="2dp" android:singleLine="true" Loading @@ -46,7 +43,7 @@ android:id="@+id/header_text_divider" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="2dp" android:layout_marginEnd="2dp" android:text="@string/notification_header_divider_symbol" Loading @@ -55,7 +52,7 @@ android:id="@+id/header_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="2dp" android:layout_marginEnd="2dp" android:visibility="gone" Loading @@ -64,7 +61,7 @@ android:id="@+id/time_divider" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="2dp" android:layout_marginEnd="2dp" android:text="@string/notification_header_divider_symbol" Loading core/res/res/layout/notification_template_material_ambient.xml +2 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,8 @@ android:paddingStart="@dimen/notification_extra_margin_ambient" android:paddingEnd="@dimen/notification_extra_margin_ambient" > <include layout="@layout/notification_template_header" /> <include layout="@layout/notification_template_header" android:theme="@style/Theme.Material.Notification.Ambient" /> <LinearLayout android:id="@+id/notification_action_list_margin_target" Loading core/res/res/values/attrs.xml +7 −0 Original line number Diff line number Diff line Loading @@ -8638,5 +8638,12 @@ <attr name="stackFromEnd" format="boolean" /> </declare-styleable> <!-- @hide --> <declare-styleable name="NotificationTheme"> <attr name="notificationHeaderStyle" format="reference" /> <attr name="notificationHeaderTextAppearance" format="reference" /> <attr name="notificationHeaderIconSize" format="dimension" /> </declare-styleable> <attr name="lockPatternStyle" format="reference" /> </resources> core/res/res/values/dimens.xml +3 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,9 @@ <!-- size (width and height) of the icon in the notification header --> <dimen name="notification_header_icon_size">18dp</dimen> <!-- size (width and height) of the icon in the notification header --> <dimen name="notification_header_icon_size_ambient">20dp</dimen> <!-- Height of a small notification in the status bar --> <dimen name="notification_min_height">92dp</dimen> Loading core/res/res/values/styles_material.xml +12 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,10 @@ please see styles_device_defaults.xml. <style name="TextAppearance.Material.Notification.Time" parent="TextAppearance.Material.Notification.Info" /> <style name="TextAppearance.Material.Notification.Info.Ambient"> <item name="textSize">@dimen/notification_text_size</item> </style> <style name="TextAppearance.Material.Notification.Emphasis"> <item name="textColor">#66000000</item> </style> Loading Loading @@ -1283,4 +1287,12 @@ please see styles_device_defaults.xml. <style name="DialogWindowTitle.Material.Light" /> <style name="Notification.Header" parent=""> <item name="paddingTop">@dimen/notification_header_padding_top</item> <item name="paddingBottom">@dimen/notification_header_padding_bottom</item> <item name="layout_marginBottom">5dp</item> <item name="paddingStart">@dimen/notification_content_margin_start</item> <item name="paddingEnd">16dp</item> </style> </resources> Loading
core/res/res/layout/notification_template_header.xml +8 −11 Original line number Diff line number Diff line Loading @@ -17,27 +17,24 @@ <NotificationHeaderView xmlns:android="http://schemas.android.com/apk/res/android" android:theme="@style/Theme.Material.Notification" android:id="@+id/notification_header" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="@dimen/notification_header_height" android:clipChildren="false" android:paddingTop="@dimen/notification_header_padding_top" android:paddingBottom="@dimen/notification_header_padding_bottom" android:layout_marginBottom="5dp" android:paddingStart="@dimen/notification_content_margin_start" android:paddingEnd="16dp"> style="?attr/notificationHeaderStyle"> <com.android.internal.widget.CachingIconView android:id="@+id/icon" android:layout_width="@dimen/notification_header_icon_size" android:layout_height="@dimen/notification_header_icon_size" android:layout_width="?attr/notificationHeaderIconSize" android:layout_height="?attr/notificationHeaderIconSize" android:layout_marginEnd="3dp" /> <TextView android:id="@+id/app_name_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="3dp" android:layout_marginEnd="2dp" android:singleLine="true" Loading @@ -46,7 +43,7 @@ android:id="@+id/header_text_divider" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="2dp" android:layout_marginEnd="2dp" android:text="@string/notification_header_divider_symbol" Loading @@ -55,7 +52,7 @@ android:id="@+id/header_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="2dp" android:layout_marginEnd="2dp" android:visibility="gone" Loading @@ -64,7 +61,7 @@ android:id="@+id/time_divider" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Material.Notification.Info" android:textAppearance="?attr/notificationHeaderTextAppearance" android:layout_marginStart="2dp" android:layout_marginEnd="2dp" android:text="@string/notification_header_divider_symbol" Loading
core/res/res/layout/notification_template_material_ambient.xml +2 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,8 @@ android:paddingStart="@dimen/notification_extra_margin_ambient" android:paddingEnd="@dimen/notification_extra_margin_ambient" > <include layout="@layout/notification_template_header" /> <include layout="@layout/notification_template_header" android:theme="@style/Theme.Material.Notification.Ambient" /> <LinearLayout android:id="@+id/notification_action_list_margin_target" Loading
core/res/res/values/attrs.xml +7 −0 Original line number Diff line number Diff line Loading @@ -8638,5 +8638,12 @@ <attr name="stackFromEnd" format="boolean" /> </declare-styleable> <!-- @hide --> <declare-styleable name="NotificationTheme"> <attr name="notificationHeaderStyle" format="reference" /> <attr name="notificationHeaderTextAppearance" format="reference" /> <attr name="notificationHeaderIconSize" format="dimension" /> </declare-styleable> <attr name="lockPatternStyle" format="reference" /> </resources>
core/res/res/values/dimens.xml +3 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,9 @@ <!-- size (width and height) of the icon in the notification header --> <dimen name="notification_header_icon_size">18dp</dimen> <!-- size (width and height) of the icon in the notification header --> <dimen name="notification_header_icon_size_ambient">20dp</dimen> <!-- Height of a small notification in the status bar --> <dimen name="notification_min_height">92dp</dimen> Loading
core/res/res/values/styles_material.xml +12 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,10 @@ please see styles_device_defaults.xml. <style name="TextAppearance.Material.Notification.Time" parent="TextAppearance.Material.Notification.Info" /> <style name="TextAppearance.Material.Notification.Info.Ambient"> <item name="textSize">@dimen/notification_text_size</item> </style> <style name="TextAppearance.Material.Notification.Emphasis"> <item name="textColor">#66000000</item> </style> Loading Loading @@ -1283,4 +1287,12 @@ please see styles_device_defaults.xml. <style name="DialogWindowTitle.Material.Light" /> <style name="Notification.Header" parent=""> <item name="paddingTop">@dimen/notification_header_padding_top</item> <item name="paddingBottom">@dimen/notification_header_padding_bottom</item> <item name="layout_marginBottom">5dp</item> <item name="paddingStart">@dimen/notification_content_margin_start</item> <item name="paddingEnd">16dp</item> </style> </resources>