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 <LinearLayout 22 android:id="@+id/dialog_container" 23 android:layout_width="fill_parent" 24 android:layout_height="fill_parent" 25 android:paddingTop="24dip" 26 android:paddingBottom="8dip" 27 android:paddingStart="22dip" 28 android:paddingEnd="16dip" 29 android:orientation="vertical"> 30 31 <FrameLayout 32 android:id="@+id/desc_container" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" > 35 <include 36 layout="@layout/permission_description" /> 37 </FrameLayout> 38 39 <CheckBox 40 android:id="@+id/do_not_ask_checkbox" 41 android:layout_width="fill_parent" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="16dip" 44 android:text="@string/never_ask_again" 45 style="?android:attr/textAppearanceSmall" 46 android:visibility="gone"> 47 </CheckBox> 48 49 <com.android.internal.widget.ButtonBarLayout 50 android:id="@+id/button_group" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:orientation="horizontal" 54 android:paddingStart="2dip" 55 android:paddingTop="16dip"> 56 57 <TextView 58 android:id="@+id/current_page_text" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:paddingTop="4dp" 62 android:paddingBottom="4dp" 63 android:paddingEnd="12dp" 64 android:singleLine="true" 65 style="@android:style/TextAppearance.Material.Body2" 66 android:textColor="@color/grant_permissions_progress_color" 67 android:visibility="invisible"> 68 </TextView> 69 70 <Space 71 android:id="@*android:id/spacer" 72 android:layout_width="0dp" 73 android:layout_height="0dp" 74 android:layout_weight="1" 75 android:visibility="invisible" /> 76 77 <Button 78 android:id="@+id/permission_deny_button" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 style="?android:attr/buttonBarButtonStyle" 82 android:text="@string/grant_dialog_button_deny" /> 83 84 <Button 85 android:id="@+id/permission_allow_button" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 style="?android:attr/buttonBarButtonStyle" 89 android:layout_marginStart="8dip" 90 android:text="@string/grant_dialog_button_allow" /> 91 92 </com.android.internal.widget.ButtonBarLayout> 93 94 </LinearLayout> 95 </com.android.packageinstaller.permission.ui.ManualLayoutFrame> 96