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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17        android:fitsSystemWindows="true"
18        android:id="@+id/permission_lockdown_activity"
19        android:orientation="vertical"
20        android:layout_width="match_parent"
21        android:layout_height="match_parent">
22
23    <ScrollView
24            android:layout_width="match_parent"
25            android:layout_height="0dp"
26            android:layout_weight="1"
27            android:paddingTop="4dp">
28        <TextView
29                android:id="@+id/test_instructions"
30                android:layout_width="match_parent"
31                android:layout_height="wrap_content"
32                android:text="@string/device_profile_owner_permission_lockdown_test_instructions"
33                android:textSize="18sp"
34                android:padding="10dp" />
35    </ScrollView>
36
37    <ScrollView
38            android:layout_width="match_parent"
39            android:layout_height="0dp"
40            android:layout_weight="1">
41        <LinearLayout
42                android:orientation="vertical"
43                android:layout_width="match_parent"
44                android:layout_height="match_parent"
45                android:layout_gravity="center_vertical"
46                android:paddingStart="10dp"
47                android:paddingEnd="10dp">
48
49            <LinearLayout
50                    android:orientation="horizontal"
51                    android:layout_width="match_parent"
52                    android:layout_height="wrap_content"
53                    android:paddingTop="4dp">
54                <ImageView
55                        android:id="@+id/package_icon"
56                        android:layout_width="48dp"
57                        android:layout_height="48dp"
58                        android:scaleType="centerInside"
59                        android:gravity="center" />
60                <TextView
61                        android:id="@+id/package_name"
62                        android:layout_width="wrap_content"
63                        android:layout_height="match_parent"
64                        android:gravity="center_vertical"
65                        android:paddingLeft="10dp"
66                        android:textSize="16sp"
67                        android:singleLine="true"
68                        android:ellipsize="end" />
69            </LinearLayout>
70
71            <TextView
72                    android:id="@+id/permission_name"
73                    android:layout_width="wrap_content"
74                    android:layout_height="wrap_content"
75                    android:textSize="16sp"
76                    android:paddingTop="4dp" />
77
78            <RadioGroup
79                    android:id="@+id/permission_group"
80                    android:layout_width="wrap_content"
81                    android:layout_height="wrap_content"
82                    android:orientation="vertical"
83                    android:paddingTop="4dp">
84                <RadioButton
85                        android:id="@+id/permission_allow"
86                        android:text="@string/permission_allow"
87                        android:layout_width="wrap_content"
88                        android:layout_height="wrap_content" />
89                <RadioButton
90                        android:id="@+id/permission_default"
91                        android:text="@string/permission_default"
92                        android:layout_width="wrap_content"
93                        android:layout_height="wrap_content" />
94                <RadioButton
95                        android:id="@+id/permission_deny"
96                        android:text="@string/permission_deny"
97                        android:layout_width="wrap_content"
98                        android:layout_height="wrap_content" />
99            </RadioGroup>
100
101            <Button
102                    android:id="@+id/open_settings"
103                    android:layout_width="wrap_content"
104                    android:layout_height="wrap_content"
105                    android:layout_gravity="center_horizontal"
106                    android:text="@string/open_settings_button_label"
107                    android:onClick="openSettings" />
108        </LinearLayout>
109    </ScrollView>
110
111</LinearLayout>