xref: /aosp_15_r20/development/samples/browseable/AppRestrictions/res/layout/main.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*90c8c64dSAndroid Build Coastguard Worker<!-- Copyright (C) 2013 The Android Open Source Project
3*90c8c64dSAndroid Build Coastguard Worker
4*90c8c64dSAndroid Build Coastguard WorkerLicensed under the Apache License, Version 2.0 (the "License");
5*90c8c64dSAndroid Build Coastguard Workeryou may not use this file except in compliance with the License.
6*90c8c64dSAndroid Build Coastguard WorkerYou may obtain a copy of the License at
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard Worker  http://www.apache.org/licenses/LICENSE-2.0
9*90c8c64dSAndroid Build Coastguard Worker
10*90c8c64dSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software
11*90c8c64dSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS,
12*90c8c64dSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*90c8c64dSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and
14*90c8c64dSAndroid Build Coastguard Workerlimitations under the License.
15*90c8c64dSAndroid Build Coastguard Worker-->
16*90c8c64dSAndroid Build Coastguard Worker<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
17*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
18*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="match_parent">
19*90c8c64dSAndroid Build Coastguard Worker    <LinearLayout android:orientation="vertical"
20*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
21*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
22*90c8c64dSAndroid Build Coastguard Worker            android:layout_margin="20dp">
23*90c8c64dSAndroid Build Coastguard Worker
24*90c8c64dSAndroid Build Coastguard Worker        <TextView android:layout_width="match_parent"
25*90c8c64dSAndroid Build Coastguard Worker                  android:layout_height="wrap_content"
26*90c8c64dSAndroid Build Coastguard Worker                  android:layout_marginBottom="10dp"
27*90c8c64dSAndroid Build Coastguard Worker                  android:textSize="18sp"
28*90c8c64dSAndroid Build Coastguard Worker                  android:text="@string/sample_app_description"/>
29*90c8c64dSAndroid Build Coastguard Worker
30*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout android:orientation="horizontal"
31*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="match_parent"
32*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
33*90c8c64dSAndroid Build Coastguard Worker                      android:layout_marginBottom="15dp">
34*90c8c64dSAndroid Build Coastguard Worker            <CheckBox android:id="@+id/custom_app_limits"
35*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="wrap_content"
36*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
37*90c8c64dSAndroid Build Coastguard Worker                      android:onClick="onCustomClicked"/>
38*90c8c64dSAndroid Build Coastguard Worker            <TextView android:layout_width="0dp"
39*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
40*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
41*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/custom_description"
42*90c8c64dSAndroid Build Coastguard Worker                      android:onClick="onCustomClicked"
43*90c8c64dSAndroid Build Coastguard Worker                      android:layout_weight="1"/>
44*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
45*90c8c64dSAndroid Build Coastguard Worker
46*90c8c64dSAndroid Build Coastguard Worker        <!-- Separator -->
47*90c8c64dSAndroid Build Coastguard Worker        <View android:layout_height="1dp"
48*90c8c64dSAndroid Build Coastguard Worker               android:background="@android:color/white"
49*90c8c64dSAndroid Build Coastguard Worker               android:layout_width="match_parent"
50*90c8c64dSAndroid Build Coastguard Worker               android:layout_margin="25dp"/>
51*90c8c64dSAndroid Build Coastguard Worker
52*90c8c64dSAndroid Build Coastguard Worker        <!-- Section to show app restriction settings under a restricted profile. -->
53*90c8c64dSAndroid Build Coastguard Worker        <TextView android:layout_width="wrap_content"
54*90c8c64dSAndroid Build Coastguard Worker                  android:layout_height="wrap_content"
55*90c8c64dSAndroid Build Coastguard Worker                  android:textSize="20sp"
56*90c8c64dSAndroid Build Coastguard Worker                  android:text="@string/current_app_limits_label"/>
57*90c8c64dSAndroid Build Coastguard Worker        <TextView android:layout_width="wrap_content"
58*90c8c64dSAndroid Build Coastguard Worker                  android:layout_height="wrap_content"
59*90c8c64dSAndroid Build Coastguard Worker                  android:textSize="18sp"
60*90c8c64dSAndroid Build Coastguard Worker                  android:layout_marginBottom="10dp"
61*90c8c64dSAndroid Build Coastguard Worker                  android:text="@string/current_app_limits_description"/>
62*90c8c64dSAndroid Build Coastguard Worker
63*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout android:orientation="horizontal"
64*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="match_parent"
65*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
66*90c8c64dSAndroid Build Coastguard Worker                      android:layout_marginStart="20dp">
67*90c8c64dSAndroid Build Coastguard Worker            <TextView android:layout_width="210dp"
68*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
69*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
70*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/boolean_entry_title"/>
71*90c8c64dSAndroid Build Coastguard Worker            <Space android:layout_height="1dp"
72*90c8c64dSAndroid Build Coastguard Worker                   android:layout_width="15dp"/>
73*90c8c64dSAndroid Build Coastguard Worker            <TextView android:id="@+id/boolean_entry_id"
74*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="wrap_content"
75*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
76*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
77*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/boolean_entry_title"/>
78*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
79*90c8c64dSAndroid Build Coastguard Worker
80*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout android:orientation="horizontal"
81*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="match_parent"
82*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
83*90c8c64dSAndroid Build Coastguard Worker                      android:layout_marginStart="20dp">
84*90c8c64dSAndroid Build Coastguard Worker            <TextView android:layout_width="210dp"
85*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
86*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
87*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/choice_entry_title"/>
88*90c8c64dSAndroid Build Coastguard Worker            <Space android:layout_height="1dp"
89*90c8c64dSAndroid Build Coastguard Worker                   android:layout_width="15dp"/>
90*90c8c64dSAndroid Build Coastguard Worker            <TextView android:id="@+id/choice_entry_id"
91*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="wrap_content"
92*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
93*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
94*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/boolean_entry_title"/>
95*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
96*90c8c64dSAndroid Build Coastguard Worker
97*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout android:orientation="horizontal"
98*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="match_parent"
99*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
100*90c8c64dSAndroid Build Coastguard Worker                      android:layout_marginStart="20dp">
101*90c8c64dSAndroid Build Coastguard Worker            <TextView android:layout_width="210dp"
102*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
103*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
104*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/multi_entry_title"/>
105*90c8c64dSAndroid Build Coastguard Worker            <Space android:layout_height="1dp"
106*90c8c64dSAndroid Build Coastguard Worker                   android:layout_width="15dp"/>
107*90c8c64dSAndroid Build Coastguard Worker            <TextView android:id="@+id/multi_entry_id"
108*90c8c64dSAndroid Build Coastguard Worker                      android:layout_width="wrap_content"
109*90c8c64dSAndroid Build Coastguard Worker                      android:layout_height="wrap_content"
110*90c8c64dSAndroid Build Coastguard Worker                      android:textSize="18sp"
111*90c8c64dSAndroid Build Coastguard Worker                      android:text="@string/multi_entry_title"/>
112*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
113*90c8c64dSAndroid Build Coastguard Worker    </LinearLayout>
114*90c8c64dSAndroid Build Coastguard Worker</ScrollView>