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/styles.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/styles.xml')
-rw-r--r-- | res/values/styles.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml index 0bfd0a041..a1ba0b0b5 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -70,6 +70,21 @@ <item name="customShadows">false</item> </style> + <style name="Icon.DeepShortcut"> + <item name="android:background">@drawable/bg_white_pill</item> + <item name="android:gravity">start|center_vertical</item> + <item name="android:minWidth">@dimen/deep_shortcuts_width</item> + <item name="android:maxWidth">@dimen/deep_shortcuts_width</item> + <item name="android:elevation">@dimen/deep_shortcuts_elevation</item> + <item name="android:paddingLeft">7dp</item> + <item name="android:drawablePadding">12dp</item> + <item name="android:textColor">@color/quantum_panel_text_color</item> + <item name="android:shadowRadius">0</item> + <item name="customShadows">false</item> + <item name="layoutHorizontal">true</item> + <item name="iconSizeOverride">@dimen/deep_shortcut_icon_size</item> + </style> + <!-- Drop targets --> <style name="DropTargetButtonBase"> <item name="android:drawablePadding">7.5dp</item> @@ -99,5 +114,4 @@ <item name="indicatorSize">4dp</item> <item name="ringOutset">4dp</item> </style> - </resources> |