summaryrefslogtreecommitdiffstats
path: root/res/drawable-television
diff options
context:
space:
mode:
authorTodd Volkert <tvolkert@google.com>2015-06-08 15:59:27 -0700
committerTodd Volkert <tvolkert@google.com>2015-06-10 12:49:56 -0700
commit17c6b0c6492c259e02f1f1edbbf4863a71b6e7ab (patch)
treebf3a69628679be5c2c45f29f9c1249b874c058d9 /res/drawable-television
parentae2ceca3c7ac2c3420541f552a2dc47f261ec199 (diff)
downloadandroid_packages_apps_PackageInstaller-17c6b0c6492c259e02f1f1edbbf4863a71b6e7ab.tar.gz
android_packages_apps_PackageInstaller-17c6b0c6492c259e02f1f1edbbf4863a71b6e7ab.tar.bz2
android_packages_apps_PackageInstaller-17c6b0c6492c259e02f1f1edbbf4863a71b6e7ab.zip
Add tv-specific grant permissions view handler
b/20476102 Change-Id: I128bb19413121b6d0367147989e79bffe45f8d82
Diffstat (limited to 'res/drawable-television')
-rw-r--r--res/drawable-television/grant_permissions_action_item.xml20
-rw-r--r--res/drawable-television/grant_permissions_action_item_background.xml21
-rw-r--r--res/drawable-television/grant_permissions_action_item_shape.xml28
3 files changed, 69 insertions, 0 deletions
diff --git a/res/drawable-television/grant_permissions_action_item.xml b/res/drawable-television/grant_permissions_action_item.xml
new file mode 100644
index 00000000..96bf582c
--- /dev/null
+++ b/res/drawable-television/grant_permissions_action_item.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 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.
+-->
+
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="@color/grant_permissions_white_text_alpha_100">
+ <item android:drawable="@drawable/grant_permissions_action_item_background" />
+</ripple>
diff --git a/res/drawable-television/grant_permissions_action_item_background.xml b/res/drawable-television/grant_permissions_action_item_background.xml
new file mode 100644
index 00000000..86d6b1f4
--- /dev/null
+++ b/res/drawable-television/grant_permissions_action_item_background.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 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_pressed="true" android:drawable="@drawable/grant_permissions_action_item_shape" />
+ <item android:state_focused="true" android:drawable="@drawable/grant_permissions_action_item_shape" />
+ <!-- no default background is specified, making the button transparent when not active -->
+</selector>
diff --git a/res/drawable-television/grant_permissions_action_item_shape.xml b/res/drawable-television/grant_permissions_action_item_shape.xml
new file mode 100644
index 00000000..08cd3455
--- /dev/null
+++ b/res/drawable-television/grant_permissions_action_item_shape.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2015 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.
+-->
+
+<inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:insetRight="1dp"
+ android:insetBottom="1dp">
+ <shape android:shape="rectangle">
+ <corners android:radius="2dp" />
+ <solid android:color="@color/grant_permissions_focus_highlight" />
+ <padding android:left="8dp"
+ android:top="4dp"
+ android:right="8dp"
+ android:bottom="4dp" />
+ </shape>
+</inset>