diff options
author | Tony Wickham <twickham@google.com> | 2016-04-28 17:39:03 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2016-06-29 17:48:46 -0700 |
commit | 1bce7fd342875be8f7c1f82c8cf21d0199c8d544 (patch) | |
tree | 44871413914606a046e9f4dcf24d3ee3bd1a8756 /res/values/dimens.xml | |
parent | 3ccedd234acb1534190c596351cf293e8ef4727a (diff) | |
download | android_packages_apps_Trebuchet-1bce7fd342875be8f7c1f82c8cf21d0199c8d544.tar.gz android_packages_apps_Trebuchet-1bce7fd342875be8f7c1f82c8cf21d0199c8d544.tar.bz2 android_packages_apps_Trebuchet-1bce7fd342875be8f7c1f82c8cf21d0199c8d544.zip |
Long-press on an app to reveal its shortcuts.
- Add ShortcutsContainerListener to icons on workspace, folders, and
all apps. This handles long-press and forwards following touches to
the DeepShortcutsContainer that is created.
- Drag over shortcut before lifting finger to launch it.
- Shortcuts are rendered in pill-shaped DeepShortcutViews,
which are inside DeepShortcutContainer on DragLayer.
- The shortcut container orients above or below the icon, and left or
right-aligns with it. Biases for above + left-align.
- Long press a DeepShortcutPill to drag and pin it to the workspace.
Bug: 28980830
Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
Diffstat (limited to 'res/values/dimens.xml')
-rw-r--r-- | res/values/dimens.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 02c6c704d..c7dd3753b 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -154,4 +154,14 @@ <dimen name="pending_widget_min_padding">8dp</dimen> <dimen name="pending_widget_elevation">2dp</dimen> +<!-- Deep shortcuts --> + <dimen name="deep_shortcuts_elevation">9dp</dimen> + <dimen name="deep_shortcuts_width">180dp</dimen> + <dimen name="deep_shortcuts_spacing">4dp</dimen> + <dimen name="deep_shortcuts_drag_view_scale">6dp</dimen> + <!-- an icon with shortcuts must be dragged this much distance away from the nearest edge + of the shortcut container before the container is removed. --> + <dimen name="deep_shortcuts_start_drag_threshold">35dp</dimen> + <dimen name="deep_shortcut_icon_size">36dp</dimen> + </resources> |