diff options
author | Todd Volkert <tvolkert@google.com> | 2015-06-08 15:59:27 -0700 |
---|---|---|
committer | Todd Volkert <tvolkert@google.com> | 2015-06-10 12:49:56 -0700 |
commit | 17c6b0c6492c259e02f1f1edbbf4863a71b6e7ab (patch) | |
tree | bf3a69628679be5c2c45f29f9c1249b874c058d9 /res/layout-television | |
parent | ae2ceca3c7ac2c3420541f552a2dc47f261ec199 (diff) | |
download | android_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/layout-television')
-rw-r--r-- | res/layout-television/grant_permissions.xml | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/res/layout-television/grant_permissions.xml b/res/layout-television/grant_permissions.xml new file mode 100644 index 00000000..94584c1d --- /dev/null +++ b/res/layout-television/grant_permissions.xml @@ -0,0 +1,90 @@ +<?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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:paddingLeft="@dimen/action_dialog_padding_left" + android:paddingRight="@dimen/action_dialog_padding_right" + android:paddingTop="@dimen/action_dialog_padding_top" + android:paddingBottom="@dimen/action_dialog_padding_bottom" + android:background="@color/grant_permissions_background_color"> + + <ImageView + android:id="@+id/permission_icon" + android:layout_width="@dimen/grant_permissions_app_icon_size" + android:layout_height="@dimen/grant_permissions_app_icon_size" + android:layout_marginTop="@dimen/grant_permissions_app_icon_margin_top"/> + + <LinearLayout + android:orientation="vertical" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginLeft="@dimen/action_dialog_content_margin_left" + android:layout_marginRight="@dimen/action_dialog_content_margin_right"> + <TextView + android:id="@+id/current_page_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/grant_permissions_app_breadcrumb_margin_bottom" + android:textAppearance="@style/GrantPermissions.BreadcrumbText" /> + + <TextView + android:id="@+id/permission_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/grant_permissions_app_title_margin_bottom" + android:textAppearance="@style/GrantPermissions.TitleText"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_marginBottom="@dimen/grant_permissions_app_details_margin_bottom" + android:layout_weight="1" + android:text="@string/grant_dialog_how_to_change" + android:textAppearance="@style/GrantPermissions.BodyText" /> + </LinearLayout> + + <LinearLayout + android:orientation="vertical" + android:layout_width="@dimen/action_dialog_actions_width" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/action_dialog_actions_margin_left" + android:layout_marginTop="@dimen/action_dialog_actions_margin_top"> + <Button + android:id="@+id/permission_allow_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/grant_dialog_button_allow" + style="@style/GrantPermissions.ActionItem" /> + + <Button + android:id="@+id/permission_deny_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/grant_dialog_button_deny" + style="@style/GrantPermissions.ActionItem" /> + + <Button + android:id="@+id/permission_deny_dont_ask_again_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/grant_dialog_button_deny_dont_ask_again" + style="@style/GrantPermissions.ActionItem" /> + </LinearLayout> + +</LinearLayout> |