summaryrefslogtreecommitdiffstats
path: root/res/values/dimens.xml
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-01-20 09:38:25 -0800
committerTony Wickham <twickham@google.com>2017-01-25 17:36:31 -0800
commit9438ed414fdabadb4cd09da184867b1c44b91095 (patch)
tree9d84de236a89cde247b9de8f11408e815e6d6702 /res/values/dimens.xml
parentf3d02e4716f89d14d9017851db9ad6141ad26875 (diff)
downloadandroid_packages_apps_Trebuchet-9438ed414fdabadb4cd09da184867b1c44b91095.tar.gz
android_packages_apps_Trebuchet-9438ed414fdabadb4cd09da184867b1c44b91095.tar.bz2
android_packages_apps_Trebuchet-9438ed414fdabadb4cd09da184867b1c44b91095.zip
Add swipe-to-dismiss notifications in popup menu.
- Next secondary icon animates up to replace dismissed main notification - Add padding around main notification so it always aligns with the straight edges of the view (not the rounded corners); looks more dismissable - Notification view collapses as notifications are dismissed - To mimic system notification behavior, we copy SwipeHelper, FlingAnimationUtils, and Interpolators. We also apply elevation to notifications and reveal a darker color beneath when dismissing. Bug: 32410600 Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
Diffstat (limited to 'res/values/dimens.xml')
-rw-r--r--res/values/dimens.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 3a2eea61b..2cf17ead7 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -172,9 +172,22 @@
<!-- Icon badges (with notification counts) -->
<dimen name="badge_size">24dp</dimen>
<dimen name="badge_text_size">12dp</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="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_elevation">2dp</dimen>
+ <dimen name="notification_divider_height">0.5dp</dimen>
+ <dimen name="swipe_helper_falsing_threshold">70dp</dimen>
<!-- Other -->
<!-- Approximates the system status bar height. Not guaranteed to be always be correct. -->
<dimen name="status_bar_height">24dp</dimen>
-
</resources>