summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-03-22 18:49:22 -0700
committerSvetoslav <svetoslavganov@google.com>2015-03-24 20:18:16 -0700
commit72b68774632f03289dc02d0e3dada06e9c984fd3 (patch)
treec427d0d5841da4391216b22728223508c0b49dd6 /res/layout
parent3c99a2b334eb00b6cfa078a9e9ed2d6a151bde46 (diff)
downloadandroid_packages_apps_PackageInstaller-72b68774632f03289dc02d0e3dada06e9c984fd3.tar.gz
android_packages_apps_PackageInstaller-72b68774632f03289dc02d0e3dada06e9c984fd3.tar.bz2
android_packages_apps_PackageInstaller-72b68774632f03289dc02d0e3dada06e9c984fd3.zip
Initial version of the grant permission UI.
Change-Id: Ieb311d29d122cfce130ae1a26889dd7794548833
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/grant_permissions.xml82
1 files changed, 82 insertions, 0 deletions
diff --git a/res/layout/grant_permissions.xml b/res/layout/grant_permissions.xml
new file mode 100644
index 00000000..7c6bfb7a
--- /dev/null
+++ b/res/layout/grant_permissions.xml
@@ -0,0 +1,82 @@
+<?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.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:paddingTop="16dip"
+ android:paddingBottom="12dip"
+ android:paddingStart="16dip"
+ android:paddingEnd="16dip"
+ android:minHeight="108dip">
+
+ <ImageView
+ android:id="@+id/permission_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingTop="6dip"
+ android:paddingEnd="10dip">
+ </ImageView>
+
+ <TextView
+ android:id="@+id/permission_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_toRightOf="@id/permission_icon"
+ style="?android:attr/textAppearanceMedium">
+ </TextView>
+
+ <CheckBox
+ android:id="@+id/do_not_ask_checkbox"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone">
+ </CheckBox>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/permission_message"
+ android:orientation="horizontal"
+ android:paddingTop="4dip">
+
+ <TextView
+ android:id="@+id/current_page_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:visibility="invisible">
+ </TextView>
+
+ <Button
+ android:id="@+id/permission_deny_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?android:attr/buttonBarButtonStyle"
+ android:text="@string/grant_dialog_button_deny">
+ </Button>
+
+ <Button
+ android:id="@+id/permission_allow_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?android:attr/buttonBarButtonStyle"
+ android:text="@string/grant_dialog_button_allow">
+ </Button>
+
+ </LinearLayout>
+
+</RelativeLayout>