1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright 2014 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    tools:context="com.example.android.basicmanagedprofile.MainActivity.MainFragment">
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:orientation="vertical"
27        android:paddingBottom="@dimen/activity_vertical_margin"
28        android:paddingLeft="@dimen/activity_horizontal_margin"
29        android:paddingRight="@dimen/activity_horizontal_margin"
30        android:paddingTop="@dimen/activity_vertical_margin">
31
32        <TextView
33            android:layout_width="wrap_content"
34            android:layout_height="wrap_content"
35            android:layout_marginBottom="@dimen/activity_vertical_margin"
36            android:text="@string/main_message" />
37
38        <!-- Calculator -->
39
40        <Switch
41            android:id="@+id/toggle_calculator"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:padding="8dp"
45            android:text="@string/toggle_calculator" />
46
47        <!-- Chrome (App restrictions) -->
48
49        <Switch
50            android:id="@+id/toggle_chrome"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:layout_marginTop="24dp"
54            android:padding="8dp"
55            android:text="@string/toggle_chrome" />
56
57        <Button
58            android:id="@+id/set_chrome_restrictions"
59            android:layout_width="wrap_content"
60            android:layout_height="wrap_content"
61            android:text="@string/set_chrome_restrictions" />
62
63        <Button
64            android:id="@+id/clear_chrome_restrictions"
65            android:layout_width="wrap_content"
66            android:layout_height="wrap_content"
67            android:text="@string/clear_chrome_restrictions" />
68
69        <!-- Intent Forwarding -->
70
71        <Button
72            android:id="@+id/enable_forwarding"
73            android:layout_width="wrap_content"
74            android:layout_height="wrap_content"
75            android:layout_marginTop="24dp"
76            android:text="@string/enable_forwarding" />
77
78        <Button
79            android:id="@+id/disable_forwarding"
80            android:layout_width="wrap_content"
81            android:layout_height="wrap_content"
82            android:text="@string/disable_forwarding" />
83
84        <Button
85            android:id="@+id/send_intent"
86            android:layout_width="wrap_content"
87            android:layout_height="wrap_content"
88            android:text="@string/send_intent_text" />
89
90        <!-- Remove profile -->
91
92        <Button
93            android:id="@+id/remove_profile"
94            android:layout_width="wrap_content"
95            android:layout_height="wrap_content"
96            android:layout_marginTop="24dp"
97            android:text="@string/remove_profile" />
98
99    </LinearLayout>
100
101</ScrollView>
102
103