summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2016-08-31 13:30:27 -0700
committerTony Wickham <twickham@google.com>2016-09-07 18:20:21 -0700
commit8dd5168b0582a20a4ede5ccfd21d227118fd9743 (patch)
tree4491743789b2b7f2c9eb2487ff0b3e50ce0d7e70 /res
parent9b7149db401959f0c3fc5f6bcb46c5d424858955 (diff)
downloadandroid_packages_apps_Trebuchet-8dd5168b0582a20a4ede5ccfd21d227118fd9743.tar.gz
android_packages_apps_Trebuchet-8dd5168b0582a20a4ede5ccfd21d227118fd9743.tar.bz2
android_packages_apps_Trebuchet-8dd5168b0582a20a4ede5ccfd21d227118fd9743.zip
Add outline to shortcuts when focused.
Bug: 30563273 Change-Id: Ia54c112dcf91c225588b7388001eb93ee5c03171
Diffstat (limited to 'res')
-rw-r--r--res/drawable/bg_pill_focused.xml25
-rw-r--r--res/layout/deep_shortcut.xml3
2 files changed, 27 insertions, 1 deletions
diff --git a/res/drawable/bg_pill_focused.xml b/res/drawable/bg_pill_focused.xml
new file mode 100644
index 000000000..37afad037
--- /dev/null
+++ b/res/drawable/bg_pill_focused.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_focused="true">
+ <shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <stroke android:color="#616161" android:width="2dp"/>
+ <corners android:radius="@dimen/bg_pill_radius" />
+ </shape>
+ </item>
+</selector> \ No newline at end of file
diff --git a/res/layout/deep_shortcut.xml b/res/layout/deep_shortcut.xml
index 2d66d728f..7b42ec70e 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" />
<View
android:id="@+id/deep_shortcut_icon"