From 51889b0be83dc34c9752fc066d0d6e75ab4f5e26 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Mon, 27 Feb 2017 16:30:47 -0800 Subject: Merge deep shortcuts in rounded rect - DeepShortcutViews are added to ShortcutsItemView, which is in PopupContainerWithArrow - Moved some shortcut-specific logic to ShortcutsItemView (namely, touch/long-click handling for draggin shortcuts) - Moved round-rect clipping to PopupItemView - Removed collapseToIcon() logic, including PillWidthRevealOutlineProvider, which was only used for that purpose. It isn't necessary now that the deep shortcuts have no background themselves. - Replaced focus pill drawable with ripple effect on shortcuts and notification view. Bug: 35766387 Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c --- res/drawable/bg_pill_focused.xml | 24 ------------------------ res/drawable/bg_white_pill.xml | 21 --------------------- res/layout/deep_shortcut.xml | 20 +++++++++++++------- res/layout/notification.xml | 2 +- res/layout/notification_footer.xml | 2 +- res/layout/shortcuts_item.xml | 32 ++++++++++++++++++++++++++++++++ res/values/dimens.xml | 13 +++++++------ 7 files changed, 54 insertions(+), 60 deletions(-) delete mode 100644 res/drawable/bg_pill_focused.xml delete mode 100644 res/drawable/bg_white_pill.xml create mode 100644 res/layout/shortcuts_item.xml (limited to 'res') diff --git a/res/drawable/bg_pill_focused.xml b/res/drawable/bg_pill_focused.xml deleted file mode 100644 index 54075d92c..000000000 --- a/res/drawable/bg_pill_focused.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/res/drawable/bg_white_pill.xml b/res/drawable/bg_white_pill.xml deleted file mode 100644 index f92f7394e..000000000 --- a/res/drawable/bg_white_pill.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/layout/deep_shortcut.xml b/res/layout/deep_shortcut.xml index 6c1d4da91..b2ed709e2 100644 --- a/res/layout/deep_shortcut.xml +++ b/res/layout/deep_shortcut.xml @@ -17,18 +17,16 @@ + android:layout_width="@dimen/bg_popup_item_width" + android:layout_height="@dimen/bg_popup_item_height" > + + diff --git a/res/layout/notification.xml b/res/layout/notification.xml index 48c7b48b9..e148cbb44 100644 --- a/res/layout/notification.xml +++ b/res/layout/notification.xml @@ -17,7 +17,7 @@ diff --git a/res/layout/notification_footer.xml b/res/layout/notification_footer.xml index c025819a2..54282086c 100644 --- a/res/layout/notification_footer.xml +++ b/res/layout/notification_footer.xml @@ -26,7 +26,7 @@ + android:layout_height="@dimen/popup_item_divider_height"/> + + + + + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 177e08e2f..8fee26b0b 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -150,10 +150,9 @@ 9dp - 208dp - 48dp - 24dp - 4dp + 208dp + 48dp + 4dp 6dp 16dp @@ -171,6 +170,8 @@ deep_shortcut_padding_end + deep_shortcut_drag_handle_size / 2 - deep_shortcuts_arrow_width / 2 also happens to equal 19dp--> 19dp + + 158dp 24dp @@ -186,9 +187,9 @@ 2dp 60dp - @dimen/bg_pill_height + @dimen/bg_popup_item_height 2dp - 0.5dp + 0.5dp 70dp -- cgit v1.2.3