• 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_always"
54                        style="@style/AppPermissionRadioButton" />
55
56                    <RadioButton
57                        android:id="@+id/foreground_only_radio_button"
58                        android:text="@string/app_permission_button_allow_foreground"
59                        style="@style/AppPermissionRadioButton" />
60
61                    <RadioButton
62                        android:id="@+id/deny_radio_button"
63                        android:text="@string/app_permission_button_deny"
64                        style="@style/AppPermissionRadioButton" />
65
66                </RadioGroup>
67
68                <LinearLayout
69                    android:layout_width="match_parent"
70                    android:layout_height="wrap_content"
71                    android:orientation="horizontal">
72
73                    <TextView
74                        android:id="@+id/permission_details"
75                        style="@style/AppPermissionDetails"/>
76
77                    <LinearLayout
78                        android:id="@+id/two_target_divider"
79                        style="@style/AppPermissionTwoTargetDivider">
80                        <View
81                            android:layout_width="1dp"
82                            android:layout_height="match_parent"
83                            android:background="@drawable/list_divider_dark" />
84                    </LinearLayout>
85
86                    <LinearLayout
87                        android:id="@+id/widget_frame"
88                        style="@style/AppPermissionWidgetFrame"/>
89
90                </LinearLayout>
91
92            </LinearLayout>
93
94            <LinearLayout
95                style="@style/AppPermissionFooter">
96
97                <View
98                    android:id="@+id/divider"
99                    style="@style/AppPermissionFooterDivider"/>
100
101                <TextView
102                    android:id="@+id/usage_summary"
103                    android:layout_width="wrap_content"
104                    android:layout_height="wrap_content"
105                    style="@style/AppPermissionFooterText"/>
106
107                <TextView
108                    android:id="@+id/footer_link_1"
109                    android:layout_width="wrap_content"
110                    android:layout_height="wrap_content"
111                    android:clickable="true"
112                    style="@style/AppPermissionFooterLink"/>
113
114                <TextView
115                    android:id="@+id/footer_link_2"
116                    android:layout_width="wrap_content"
117                    android:layout_height="wrap_content"
118                    android:clickable="true"
119                    style="@style/AppPermissionFooterLink"/>
120
121            </LinearLayout>
122
123        </LinearLayout>
124
125    </androidx.core.widget.NestedScrollView>
126
127</LinearLayout>
128