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/values | |
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/values')
-rw-r--r-- | res/values/dimens.xml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 517bf9f79..177e08e2f 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -175,19 +175,18 @@ <!-- Icon badges (with notification counts) --> <dimen name="badge_size">24dp</dimen> <dimen name="badge_text_size">12dp</dimen> - <dimen name="badge_small_padding">1dp</dimen> + <dimen name="badge_small_padding">0dp</dimen> <dimen name="badge_large_padding">3dp</dimen> <dimen name="notification_icon_size">28dp</dimen> <dimen name="notification_footer_icon_size">24dp</dimen> - <!-- (icon_size - secondary_icon_size) / 2 --> <!-- Notifications --> + <dimen name="bg_round_rect_radius">12dp</dimen> + <dimen name="notification_padding">12dp</dimen> + <!-- (icon_size - footer_icon_size) / 2 --> <dimen name="notification_footer_icon_row_padding">2dp</dimen> - <dimen name="notification_icon_margin_start">8dp</dimen> - <dimen name="notification_text_margin_start">8dp</dimen> - <dimen name="notification_footer_height">36dp</dimen> - <!-- The height to use when there are no icons in the footer --> - <dimen name="notification_footer_collapsed_height">@dimen/bg_pill_radius</dimen> + <dimen name="notification_main_height">60dp</dimen> + <dimen name="notification_footer_height">@dimen/bg_pill_height</dimen> <dimen name="notification_elevation">2dp</dimen> <dimen name="notification_divider_height">0.5dp</dimen> <dimen name="swipe_helper_falsing_threshold">70dp</dimen> |