From 8dd5168b0582a20a4ede5ccfd21d227118fd9743 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 31 Aug 2016 13:30:27 -0700 Subject: [PATCH] Add outline to shortcuts when focused. Bug: 30563273 Change-Id: Ia54c112dcf91c225588b7388001eb93ee5c03171 --- res/drawable/bg_pill_focused.xml | 25 +++++++++++++++++++ res/layout/deep_shortcut.xml | 3 ++- .../launcher3/dragndrop/DragLayer.java | 4 ++- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 res/drawable/bg_pill_focused.xml diff --git a/res/drawable/bg_pill_focused.xml b/res/drawable/bg_pill_focused.xml new file mode 100644 index 0000000000..37afad0374 --- /dev/null +++ b/res/drawable/bg_pill_focused.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/deep_shortcut.xml b/res/layout/deep_shortcut.xml index 2d66d728f5..7b42ec70ec 100644 --- a/res/layout/deep_shortcut.xml +++ b/res/layout/deep_shortcut.xml @@ -26,7 +26,8 @@ style="@style/Icon.DeepShortcut" android:layout_width="match_parent" android:layout_height="match_parent" - android:focusable="true" /> + android:focusable="true" + android:background="@drawable/bg_pill_focused" />