diff options
author | Tony Wickham <twickham@google.com> | 2016-08-02 15:50:44 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2016-08-05 11:17:42 -0700 |
commit | 988e2b7a4dbf6de017b2471626d2d8e5774bf8ed (patch) | |
tree | 666ee0b53c1fffd182c6d4a62dad6a5bfd7da963 /res | |
parent | 37aba27bbcc89417588a638d61099288553387df (diff) | |
download | android_packages_apps_Trebuchet-988e2b7a4dbf6de017b2471626d2d8e5774bf8ed.tar.gz android_packages_apps_Trebuchet-988e2b7a4dbf6de017b2471626d2d8e5774bf8ed.tar.bz2 android_packages_apps_Trebuchet-988e2b7a4dbf6de017b2471626d2d8e5774bf8ed.zip |
Make padding consistent between shortcuts and the app icon.
This change makes the padding consistent regardless of where the app
is (e.g. folder vs workspace vs all apps) by ignoring the app's
padding and adding our own to the shortcuts container.
Also note that this padding is relative to the icon, excluding the
text beneath it. So we also hide the text when the container opens
downwards, and re-show it when the container closes.
Bug: 30604007
Change-Id: I6e51c4983a8b5d495833f86e483ebaa229ed2099
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/deep_shortcuts_container.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/layout/deep_shortcuts_container.xml b/res/layout/deep_shortcuts_container.xml index 92e7a83f3..68bb60f24 100644 --- a/res/layout/deep_shortcuts_container.xml +++ b/res/layout/deep_shortcuts_container.xml @@ -19,6 +19,9 @@ android:id="@+id/deep_shortcuts_container" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:clipToPadding="false" android:clipChildren="false" android:elevation="@dimen/deep_shortcuts_elevation" android:orientation="vertical"> |