• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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            <LinearLayout
39                style="@style/AppPermissionSelection">
40
41                <TextView
42                    android:id="@+id/permission_message"
43                    style="@style/AppPermissionMessage" />
44
45                <RadioGroup
46                    android:id="@+id/radiogroup"
47                    android:animateLayoutChanges="true"
48                    android:layout_width="match_parent"
49                    android:layout_height="wrap_content">
50
51                    <RadioButton
52                        android:id="@+id/allow_radio_button"
53                        android:text="@string/app_permission_button_allow"
54                        style="@style/AppPermissionRadioButton" />
55
56                    <RadioButton
57                        android:id="@+id/allow_always_radio_button"
58                        android:text="@string/app_permission_button_allow_always"
59                        style="@style/AppPermissionRadioButton" />
60
61                    <RadioButton
62                        android:id="@+id/allow_foreground_only_radio_button"
63                        android:text="@string/app_permission_button_allow_foreground"
64                        style="@style/AppPermissionRadioButton" />
65
66                    <RadioButton
67                        android:id="@+id/ask_one_time_radio_button"
68                        android:text="@string/app_permission_button_ask"
69                        style="@style/AppPermissionRadioButton" />
70
71                    <RadioButton
72                        android:id="@+id/ask_radio_button"
73                        android:text="@string/app_permission_button_ask"
74                        style="@style/AppPermissionRadioButton" />
75
76                    <RadioButton
77                        android:id="@+id/deny_radio_button"
78                        android:text="@string/app_permission_button_deny"
79                        style="@style/AppPermissionRadioButton" />
80
81                    <RadioButton
82                        android:id="@+id/deny_foreground_radio_button"
83                        android:text="@string/app_permission_button_deny"
84                        style="@style/AppPermissionRadioButton" />
85
86                </RadioGroup>
87
88                <LinearLayout
89                    android:layout_width="match_parent"
90                    android:layout_height="wrap_content"
91                    android:id="@+id/location_accuracy"
92                    style="@style/AppPermissionLocationAccuracy">
93
94                    <LinearLayout
95                        android:duplicateParentState="true"
96                        style="@style/AppPermissionLocationAccuracyText">
97                        <TextView
98                            android:duplicateParentState="true"
99                            android:text="@string/app_permission_location_accuracy"
100                            style="@style/AppPermissionLocationAccuracyTitle" />
101                        <TextView
102                            android:duplicateParentState="true"
103                            android:text="@string/app_permission_location_accuracy_subtitle"
104                            style="@style/AppPermissionLocationAccuracySubtitle" />
105                    </LinearLayout>
106
107                    <Switch
108                        android:id="@+id/location_accuracy_switch"
109                        android:checked="true"
110                        android:duplicateParentState="true"
111                        style="@style/AppPermissionLocationAccuracySwitch" />
112
113                </LinearLayout>
114
115                <LinearLayout
116                    android:layout_width="match_parent"
117                    android:layout_height="wrap_content"
118                    android:orientation="horizontal">
119
120                    <TextView
121                        android:id="@+id/permission_details"
122                        style="@style/AppPermissionDetails"
123                        android:gravity="start"
124                        android:textAlignment="viewStart"/>
125
126                    <LinearLayout
127                        android:id="@+id/two_target_divider"
128                        style="@style/AppPermissionTwoTargetDivider">
129                        <View
130                            android:layout_width="1dp"
131                            android:layout_height="match_parent"
132                            android:background="@drawable/list_divider_dark" />
133                    </LinearLayout>
134
135                    <LinearLayout
136                        android:id="@+id/widget_frame"
137                        style="@style/AppPermissionWidgetFrame" />
138
139                </LinearLayout>
140
141            </LinearLayout>
142
143            <LinearLayout
144                style="@style/AppPermissionFooter">
145
146                <TextView
147                    android:id="@+id/footer_link_1"
148                    android:layout_width="wrap_content"
149                    android:layout_height="wrap_content"
150                    android:clickable="true"
151                    style="@style/AppPermissionFooterLink" />
152
153                <TextView
154                    android:id="@+id/footer_link_2"
155                    android:layout_width="wrap_content"
156                    android:layout_height="wrap_content"
157                    android:clickable="true"
158                    style="@style/AppPermissionFooterLink" />
159
160                <TextView
161                    android:id="@+id/footer_storage_special_app_access"
162                    android:clickable="false"
163                    android:layout_width="wrap_content"
164                    android:layout_height="wrap_content"
165                    android:drawableLeft="@drawable/ic_info_outline"
166                    style="@style/AppPermissionFooterTextWithIcon" />
167
168            </LinearLayout>
169
170            <LinearLayout
171                style="@style/AppPermissionFooter">
172
173                <ImageView
174                    android:id="@+id/app_additional_info_icon"
175                    android:clickable="false"
176                    android:src="@drawable/ic_info_outline"
177                    android:layout_marginBottom="16dp"
178                    android:layout_marginStart="24dp"
179                    style="@style/ImageViewIcon" />
180
181                <TextView
182                    android:id="@+id/app_additional_info_text"
183                    android:layout_width="wrap_content"
184                    android:layout_height="wrap_content"
185                    android:paddingStart="24dp"
186                    android:paddingEnd="24dp"
187                    android:clickable="true"
188                    android:textSize="14sp"
189                    android:lineHeight="20sp"
190                    style="@style/AppPermissionFooter" />
191
192            </LinearLayout>
193
194        </LinearLayout>
195
196    </androidx.core.widget.NestedScrollView>
197
198</LinearLayout>
199