diff options
author | Tony Wickham <twickham@google.com> | 2017-02-21 15:16:12 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-02-24 12:09:06 -0800 |
commit | 7f3526a1a4d5d3578d4648abb1422646d23c6080 (patch) | |
tree | 92b451eba0558f192c84d4c982e9d754940e10ff /res/layout/notification_main.xml | |
parent | e05b08f705e517be42da35a12508e54c05b1b5ff (diff) | |
download | android_packages_apps_Trebuchet-7f3526a1a4d5d3578d4648abb1422646d23c6080.tar.gz android_packages_apps_Trebuchet-7f3526a1a4d5d3578d4648abb1422646d23c6080.tar.bz2 android_packages_apps_Trebuchet-7f3526a1a4d5d3578d4648abb1422646d23c6080.zip |
Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height
Bug: 32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
Diffstat (limited to 'res/layout/notification_main.xml')
-rw-r--r-- | res/layout/notification_main.xml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/res/layout/notification_main.xml b/res/layout/notification_main.xml index 84827f114..d036fe5d2 100644 --- a/res/layout/notification_main.xml +++ b/res/layout/notification_main.xml @@ -21,20 +21,14 @@ android:layout_height="match_parent" android:orientation="horizontal" android:focusable="true" + android:padding="@dimen/notification_padding" android:elevation="@dimen/notification_elevation" > - <View - android:id="@+id/popup_item_icon" - android:layout_width="@dimen/notification_icon_size" - android:layout_height="@dimen/notification_icon_size" - android:layout_marginStart="@dimen/notification_icon_margin_start" - android:layout_gravity="center_vertical" /> - <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:layout_marginStart="@dimen/notification_text_margin_start" + android:layout_weight="1" android:gravity="center_vertical"> <TextView android:id="@+id/title" @@ -56,5 +50,12 @@ android:layout_height="wrap_content" /> </LinearLayout> + <View + android:id="@+id/popup_item_icon" + android:layout_width="@dimen/notification_icon_size" + android:layout_height="@dimen/notification_icon_size" + android:layout_weight="0" + android:layout_gravity="center_vertical" /> + </com.android.launcher3.notification.NotificationMainView> |