1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical" 23 android:id="@+id/app_permission_root"> 24 25 <androidx.core.widget.NestedScrollView 26 android:id="@+id/nested_scroll_view" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:clipChildren="false"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 style="@style/AppPermission"> 35 36 <include layout="@layout/header_large" /> 37 38 <View 39 style="@style/LargeHeaderDivider" /> 40 41 <LinearLayout 42 style="@style/AppPermissionSelection"> 43 44 <TextView 45 android:id="@+id/permission_message" 46 style="@style/AppPermissionMessage" /> 47 48 <RadioGroup 49 android:id="@+id/radiogroup" 50 android:animateLayoutChanges="true" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content"> 53 54 <RadioButton 55 android:id="@+id/allow_radio_button" 56 android:text="@string/app_permission_button_allow" 57 style="@style/AppPermissionRadioButton" /> 58 59 <RadioButton 60 android:id="@+id/allow_always_radio_button" 61 android:text="@string/app_permission_button_allow_always" 62 style="@style/AppPermissionRadioButton" /> 63 64 <RadioButton 65 android:id="@+id/allow_foreground_only_radio_button" 66 android:text="@string/app_permission_button_allow_foreground" 67 style="@style/AppPermissionRadioButton" /> 68 69 <RadioButton 70 android:id="@+id/ask_one_time_radio_button" 71 android:text="@string/app_permission_button_ask" 72 style="@style/AppPermissionRadioButton" /> 73 74 <RadioButton 75 android:id="@+id/ask_radio_button" 76 android:text="@string/app_permission_button_ask" 77 style="@style/AppPermissionRadioButton" /> 78 79 <RadioButton 80 android:id="@+id/deny_radio_button" 81 android:text="@string/app_permission_button_deny" 82 style="@style/AppPermissionRadioButton" /> 83 84 <RadioButton 85 android:id="@+id/deny_foreground_radio_button" 86 android:text="@string/app_permission_button_deny" 87 style="@style/AppPermissionRadioButton" /> 88 89 </RadioGroup> 90 91 <LinearLayout 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:orientation="horizontal"> 95 96 <TextView 97 android:id="@+id/permission_details" 98 style="@style/AppPermissionDetails" /> 99 100 <LinearLayout 101 android:id="@+id/two_target_divider" 102 style="@style/AppPermissionTwoTargetDivider"> 103 <View 104 android:layout_width="1dp" 105 android:layout_height="match_parent" 106 android:background="@drawable/list_divider_dark" /> 107 </LinearLayout> 108 109 <LinearLayout 110 android:id="@+id/widget_frame" 111 style="@style/AppPermissionWidgetFrame" /> 112 113 </LinearLayout> 114 115 </LinearLayout> 116 117 <LinearLayout 118 style="@style/AppPermissionFooter"> 119 120 <View 121 android:id="@+id/divider" 122 style="@style/AppPermissionFooterDivider" /> 123 124 <TextView 125 android:id="@+id/footer_link_1" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:clickable="true" 129 style="@style/AppPermissionFooterLink" /> 130 131 <TextView 132 android:id="@+id/footer_link_2" 133 android:layout_width="wrap_content" 134 android:layout_height="wrap_content" 135 android:clickable="true" 136 style="@style/AppPermissionFooterLink" /> 137 138 <TextView 139 android:id="@+id/footer_storage_special_app_access" 140 android:clickable="false" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:drawableLeft="@drawable/ic_info_outline" 144 style="@style/AppPermissionFooterTextWithIcon" /> 145 146 </LinearLayout> 147 148 </LinearLayout> 149 150 </androidx.core.widget.NestedScrollView> 151 152</LinearLayout> 153