1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2015 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <com.android.packageinstaller.permission.ui.ManualLayoutFrame 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent" 21 android:clipChildren="false" 22 android:paddingLeft="16dp" 23 android:paddingRight="16dp" 24 android:paddingTop="8dp" 25 android:paddingBottom="32dp" 26 android:clipToPadding="false"> 27 28 <ScrollView android:layout_width="wrap_content" 29 android:layout_height="wrap_content"> 30 31 <LinearLayout 32 android:id="@+id/dialog_container" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:orientation="vertical" 36 android:elevation="16dp" 37 android:background="@drawable/dialog_background"> 38 39 <FrameLayout 40 android:id="@+id/desc_container" 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:paddingTop="18dip" 44 android:paddingStart="20dip" 45 android:paddingEnd="16dip"> 46 <include 47 layout="@layout/permission_description" /> 48 </FrameLayout> 49 50 <LinearLayout 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:orientation="vertical" 54 android:paddingStart="20dip" 55 android:paddingEnd="16dip"> 56 57 <CheckBox 58 android:id="@+id/do_not_ask_checkbox" 59 android:layout_width="fill_parent" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="8dp" 62 android:layout_marginBottom="-12dp" 63 android:minHeight="48dp" 64 android:text="@string/never_ask_again" 65 android:textColor="?android:attr/textColorPrimary" 66 style="?android:attr/textAppearanceSmall" 67 android:visibility="gone"> 68 </CheckBox> 69 70 <com.android.packageinstaller.permission.ui.ButtonBarLayout 71 android:id="@+id/button_group" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:orientation="horizontal" 75 android:paddingStart="6dip" 76 android:paddingTop="4dp" 77 android:paddingBottom="4dp" 78 android:gravity="bottom"> 79 80 <TextView 81 android:id="@+id/current_page_text" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_gravity="center_vertical" 85 android:paddingEnd="12dp" 86 android:singleLine="true" 87 style="?android:attr/textAppearanceSmall" 88 android:textColor="?android:attr/textColorSecondary" 89 android:visibility="invisible"> 90 </TextView> 91 92 <Space 93 android:id="@+id/spacer" 94 android:layout_width="0dp" 95 android:layout_height="0dp" 96 android:layout_weight="1" 97 android:visibility="invisible" > 98 </Space> 99 100 <Button 101 android:id="@+id/permission_deny_button" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 style="?android:attr/buttonBarButtonStyle" 105 android:text="@string/grant_dialog_button_deny" > 106 </Button> 107 108 <Button 109 android:id="@+id/permission_allow_button" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 style="?android:attr/buttonBarButtonStyle" 113 android:text="@string/grant_dialog_button_allow" > 114 </Button> 115 116 </com.android.packageinstaller.permission.ui.ButtonBarLayout> 117 118 </LinearLayout> 119 120 </LinearLayout> 121 122 </ScrollView> 123 124 </com.android.packageinstaller.permission.ui.ManualLayoutFrame> 125