• 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
124                    <LinearLayout
125                        android:id="@+id/two_target_divider"
126                        style="@style/AppPermissionTwoTargetDivider">
127                        <View
128                            android:layout_width="1dp"
129                            android:layout_height="match_parent"
130                            android:background="@drawable/list_divider_dark" />
131                    </LinearLayout>
132
133                    <LinearLayout
134                        android:id="@+id/widget_frame"
135                        style="@style/AppPermissionWidgetFrame" />
136
137                </LinearLayout>
138
139            </LinearLayout>
140
141            <LinearLayout
142                style="@style/AppPermissionFooter">
143
144                <TextView
145                    android:id="@+id/footer_link_1"
146                    android:layout_width="wrap_content"
147                    android:layout_height="wrap_content"
148                    android:clickable="true"
149                    style="@style/AppPermissionFooterLink" />
150
151                <TextView
152                    android:id="@+id/footer_link_2"
153                    android:layout_width="wrap_content"
154                    android:layout_height="wrap_content"
155                    android:clickable="true"
156                    style="@style/AppPermissionFooterLink" />
157
158                <TextView
159                    android:id="@+id/footer_storage_special_app_access"
160                    android:clickable="false"
161                    android:layout_width="wrap_content"
162                    android:layout_height="wrap_content"
163                    android:drawableLeft="@drawable/ic_info_outline"
164                    style="@style/AppPermissionFooterTextWithIcon" />
165
166            </LinearLayout>
167
168        </LinearLayout>
169
170    </androidx.core.widget.NestedScrollView>
171
172</LinearLayout>
173