summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-07-22 10:50:11 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-07-27 17:37:23 -0700
commita2454ad2d8dcffa94f670853eb464726c73597f1 (patch)
tree63899483e75a7faadff477cb117bf5c5cfc54962 /res/values
parent71538da6e2e70af15684cc270a6e67c9b5a010dc (diff)
downloadandroid_packages_apps_Trebuchet-a2454ad2d8dcffa94f670853eb464726c73597f1.tar.gz
android_packages_apps_Trebuchet-a2454ad2d8dcffa94f670853eb464726c73597f1.tar.bz2
android_packages_apps_Trebuchet-a2454ad2d8dcffa94f670853eb464726c73597f1.zip
Launcher shortcuts animations update.
> The shortcut container closes with an animation > When opening/closing the animation only the icon scales and not the title and drag handle > When dragging the icon, it starts from the original icon position and moves under the user finger. The container grows to follow the drag view. Bug: 28980830 Change-Id: Ic0353c30b682d1f018cbf4d62e8a6e8e7d7d4664
Diffstat (limited to 'res/values')
-rw-r--r--res/values/config.xml7
-rw-r--r--res/values/styles.xml3
2 files changed, 6 insertions, 4 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index 943804278..94f02f942 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -88,9 +88,10 @@
<item type="id" name="cell_layout_jail_id" />
<!-- Deep shortcuts -->
- <integer name="config_deepShortcutOpenDuration">300</integer>
- <integer name="config_deepShortcutOpenStagger">20</integer>
- <integer name="config_deepShortcutHoverDuration">120</integer>
+ <integer name="config_deepShortcutOpenDuration">220</integer>
+ <integer name="config_deepShortcutOpenStagger">40</integer>
+ <integer name="config_deepShortcutCloseDuration">150</integer>
+ <integer name="config_deepShortcutCloseStagger">20</integer>
<!-- Accessibility actions -->
<item type="id" name="action_remove" />
diff --git a/res/values/styles.xml b/res/values/styles.xml
index a647cf259..4c0230ac5 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -80,8 +80,9 @@
<style name="Icon.DeepShortcut">
<item name="android:gravity">start|center_vertical</item>
<item name="android:elevation">@dimen/deep_shortcuts_elevation</item>
- <item name="android:paddingStart">@dimen/deep_shortcut_padding_start</item>
+ <item name="android:paddingStart">@dimen/bg_pill_height</item>
<item name="android:paddingEnd">@dimen/deep_shortcut_padding_end</item>
+ <item name="android:drawableEnd">@drawable/deep_shortcuts_drag_handle</item>
<item name="android:drawablePadding">@dimen/deep_shortcut_drawable_padding</item>
<item name="android:textColor">@color/quantum_panel_text_color</item>
<item name="android:shadowRadius">0</item>