summaryrefslogtreecommitdiffstats
path: root/res/layout/review_permissions.xml
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-09-27 08:10:39 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-12-01 19:55:08 -0800
commitbf7316751f0c73b435b693fd20b0c9b2fa973e85 (patch)
tree5f372a0d0e8644921cf40905c623b4b11c88e03e /res/layout/review_permissions.xml
parente3ba0f72cf3a38d5f196b10f976dfe4c5dd5dff5 (diff)
downloadandroid_packages_apps_PackageInstaller-bf7316751f0c73b435b693fd20b0c9b2fa973e85.tar.gz
android_packages_apps_PackageInstaller-bf7316751f0c73b435b693fd20b0c9b2fa973e85.tar.bz2
android_packages_apps_PackageInstaller-bf7316751f0c73b435b693fd20b0c9b2fa973e85.zip
Add optional permission review for legacy apps - installer
Change-Id: Ifc88b2fa259d2d22bea6b5500cded2714ad4da85
Diffstat (limited to 'res/layout/review_permissions.xml')
-rw-r--r--res/layout/review_permissions.xml90
1 files changed, 90 insertions, 0 deletions
diff --git a/res/layout/review_permissions.xml b/res/layout/review_permissions.xml
new file mode 100644
index 00000000..462f9a54
--- /dev/null
+++ b/res/layout/review_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:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_marginTop="32dip"
+ android:layout_marginBottom="8dip"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dip"
+ android:layout_marginEnd="16dip"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:id="@+id/app_icon"
+ android:layout_width="36dip"
+ android:layout_height="36dip"
+ android:tint="?android:attr/colorAccent"
+ android:scaleType="fitCenter">
+ </ImageView>
+
+ <TextView
+ android:id="@+id/permissions_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dip"
+ style="?android:attr/textAppearanceMedium">
+ </TextView>
+
+ </LinearLayout>
+
+ <FrameLayout
+ android:id="@+id/preferences_frame"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_marginStart="2dip"
+ android:layout_marginEnd="2dip"
+ android:layout_weight="1">
+ </FrameLayout>
+
+ <com.android.internal.widget.ButtonBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:paddingStart="2dip"
+ android:paddingTop="16dip">
+
+ <Space
+ android:id="@*android:id/spacer"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:visibility="invisible" />
+
+ <Button
+ android:id="@+id/cancel_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?android:attr/buttonBarButtonStyle"
+ android:text="@string/review_button_cancel" />
+
+ <Button
+ android:id="@+id/continue_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_marginStart="8dip"
+ android:text="@string/review_button_continue" />
+
+ </com.android.internal.widget.ButtonBarLayout>
+
+</LinearLayout>