diff options
author | Tony Wickham <twickham@google.com> | 2017-06-22 14:22:40 -0700 |
---|---|---|
committer | Tony <twickham@google.com> | 2017-06-27 19:43:18 -0700 |
commit | aa2272f81cc4a62f847db777efda7959cc2b9979 (patch) | |
tree | 31fe70125c6918bdde27828d378609310e484da9 /res/layout | |
parent | d032d2cea4c453c626832a85c4b7bf5241f237dc (diff) | |
download | android_packages_apps_Trebuchet-aa2272f81cc4a62f847db777efda7959cc2b9979.tar.gz android_packages_apps_Trebuchet-aa2272f81cc4a62f847db777efda7959cc2b9979.tar.bz2 android_packages_apps_Trebuchet-aa2272f81cc4a62f847db777efda7959cc2b9979.zip |
Popup visual changes
- Don't remove elevation during animation (b/62905720)
- Other adjustments (b/35766387)
- Add "gutter" between notification and shortcuts
- Change shortcuts to always be primary color (e.g. white)
- Scale down shortcut icons when notifications present
- Apply icon extracted color to "Notifications" header
Change-Id: Idf791dc76d15d05d246000ad73810916d7cd1750
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/notification.xml | 24 | ||||
-rw-r--r-- | res/layout/notification_main.xml | 2 |
2 files changed, 21 insertions, 5 deletions
diff --git a/res/layout/notification.xml b/res/layout/notification.xml index 085dfa93c..4a02aa169 100644 --- a/res/layout/notification.xml +++ b/res/layout/notification.xml @@ -28,6 +28,13 @@ android:orientation="vertical" android:clipChildren="false"> + <View + android:id="@+id/gutter_top" + android:layout_width="match_parent" + android:layout_height="4dp" + android:theme="@style/PopupGutter" + android:visibility="gone" /> + <FrameLayout android:id="@+id/header" android:layout_width="match_parent" @@ -35,22 +42,23 @@ android:paddingStart="@dimen/notification_padding_start" android:paddingEnd="@dimen/notification_padding_end" android:background="?attr/popupColorPrimary" - android:elevation="@dimen/notification_elevation"> + android:elevation="@dimen/notification_elevation" + android:layout_below="@id/gutter_top" > <TextView android:id="@+id/notification_text" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" - android:gravity="center_vertical" + android:gravity="bottom" android:text="@string/notifications_header" android:textSize="@dimen/notification_header_text_size" - android:textColor="?android:attr/textColorSecondary" /> + android:textColor="?android:attr/textColorPrimary" /> <TextView android:id="@+id/notification_count" android:layout_width="@dimen/notification_icon_size" android:layout_height="match_parent" android:layout_gravity="end" - android:gravity="center" + android:gravity="bottom|center_horizontal" android:textSize="@dimen/notification_header_count_text_size" android:fontFamily="sans-serif-medium" android:textColor="?android:attr/textColorPrimary" /> @@ -76,6 +84,14 @@ android:layout_height="@dimen/notification_footer_height" android:layout_below="@id/divider" /> + <View + android:id="@+id/gutter_bottom" + android:layout_width="match_parent" + android:layout_height="4dp" + android:theme="@style/PopupGutter" + android:visibility="gone" + android:layout_below="@id/footer" /> + </RelativeLayout> </com.android.launcher3.notification.NotificationItemView> diff --git a/res/layout/notification_main.xml b/res/layout/notification_main.xml index 7a8cf6d5c..f681e8b06 100644 --- a/res/layout/notification_main.xml +++ b/res/layout/notification_main.xml @@ -38,7 +38,7 @@ android:layout_height="wrap_content" android:textAlignment="viewStart" android:fontFamily="sans-serif" - android:textSize="@dimen/notification_main_text_size" + android:textSize="@dimen/notification_main_title_size" android:textColor="?android:attr/textColorPrimary" android:lines="1" android:ellipsize="end" /> |