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 <LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent" 21 android:layout_marginTop="32dip" 22 android:layout_marginBottom="8dip" 23 android:orientation="vertical"> 24 25 <LinearLayout 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:layout_marginStart="16dip" 29 android:layout_marginEnd="16dip" 30 android:layout_marginBottom="16dip" 31 android:orientation="horizontal"> 32 33 <ImageView 34 android:id="@+id/app_icon" 35 android:layout_width="36dip" 36 android:layout_height="36dip" 37 android:scaleType="fitCenter"> 38 </ImageView> 39 40 <TextView 41 android:id="@+id/permissions_message" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginStart="16dip" 45 style="?android:attr/textAppearanceMedium"> 46 </TextView> 47 48 </LinearLayout> 49 50 <FrameLayout 51 android:id="@+id/preferences_frame" 52 android:layout_width="fill_parent" 53 android:layout_height="fill_parent" 54 android:layout_marginStart="2dip" 55 android:layout_marginEnd="2dip" 56 android:layout_weight="1"> 57 </FrameLayout> 58 59 <LinearLayout 60 android:layout_width="fill_parent" 61 android:layout_height="wrap_content" 62 android:orientation="horizontal" 63 android:paddingStart="2dip" 64 android:paddingTop="16dip"> 65 66 <Button 67 android:id="@+id/permission_more_info_button" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_gravity="bottom" 71 style="?android:attr/buttonBarButtonStyle" 72 android:text="@string/grant_dialog_button_more_info"> 73 </Button> 74 75 <Space 76 android:layout_width="0dp" 77 android:layout_height="0dp" 78 android:layout_weight="1" 79 android:visibility="invisible"> 80 </Space> 81 82 <com.android.packageinstaller.permission.ui.ButtonBarLayout 83 android:id="@+id/button_group" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_gravity="bottom" 87 android:orientation="horizontal" 88 android:gravity="bottom"> 89 90 <Button 91 android:id="@+id/cancel_button" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 style="?android:attr/buttonBarButtonStyle" 95 android:text="@string/review_button_cancel"> 96 </Button> 97 98 <Button 99 android:id="@+id/continue_button" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 style="?android:attr/buttonBarButtonStyle" 103 android:layout_marginStart="8dip" 104 android:text="@string/review_button_continue"> 105 </Button> 106 107 </com.android.packageinstaller.permission.ui.ButtonBarLayout> 108 109 </LinearLayout> 110 111 </LinearLayout> 112