summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-10-12 16:12:29 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-10-15 11:00:28 -0700
commitc604a10551efb025a988c653c9635c209b2a2e00 (patch)
treebae79cb6ca2896c68572b6b7aa1aa11f92604fc2 /res/drawable
parent7fad0d54ca437b6a36c9b20a5bf69053f3aa5bb3 (diff)
downloadandroid_packages_apps_Trebuchet-c604a10551efb025a988c653c9635c209b2a2e00.tar.gz
android_packages_apps_Trebuchet-c604a10551efb025a988c653c9635c209b2a2e00.tar.bz2
android_packages_apps_Trebuchet-c604a10551efb025a988c653c9635c209b2a2e00.zip
Adding keyboard handling to QsbHostView similar to a normal appwidget view
Bug: 116842846 Change-Id: Ibab2dc1793561998f81710301d9ce0ca3d77e7b4
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/qsb_host_view_focus_bg.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/res/drawable/qsb_host_view_focus_bg.xml b/res/drawable/qsb_host_view_focus_bg.xml
new file mode 100644
index 000000000..7300b6a6c
--- /dev/null
+++ b/res/drawable/qsb_host_view_focus_bg.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2018, 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.
+*/
+-->
+
+<!-- Used as the widget host view background when giving focus to a child via keyboard. -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_selected="true">
+ <shape android:shape="rectangle">
+ <stroke android:color="#fff" android:width="2dp" />
+ </shape>
+ </item>
+ <item android:state_focused="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/focused_background" />
+ </shape>
+ </item>
+</selector> \ No newline at end of file