1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 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
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/content"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:fadeScrollbars="false">
23
24    <LinearLayout
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:orientation="vertical">
28
29        <TextView
30            android:id="@+id/unavailable_message"
31            android:layout_width="wrap_content"
32            android:layout_height="wrap_content"
33            android:text="CarRotaryService does not exist in this build"
34            android:textSize="30sp"
35            android:textColor="@*android:color/red"/>
36
37        <TextView
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:textSize="30sp"
41            android:text="Overall Controls"/>
42
43        <LinearLayout
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:orientation="horizontal">
47
48            <Button
49                android:id="@+id/enable_all_rotary"
50                android:layout_width="wrap_content"
51                android:layout_height="wrap_content"
52                android:layout_margin="10dp"
53                android:text="Enable All"
54                android:textSize="30sp"/>
55
56            <Button
57                android:id="@+id/disable_all_rotary"
58                android:layout_width="wrap_content"
59                android:layout_height="wrap_content"
60                android:layout_margin="10dp"
61                android:text="Disable All"
62                android:textSize="30sp"/>
63
64        </LinearLayout>
65
66        <LinearLayout
67            android:layout_width="match_parent"
68            android:layout_height="wrap_content"
69            android:orientation="horizontal"
70            android:layout_margin="10dp">
71
72            <TextView
73                android:layout_width="500dp"
74                android:layout_height="wrap_content"
75                android:textSize="30sp"
76                android:text="CarRotaryService state"/>
77
78            <Switch
79                android:id="@+id/rotary_service_toggle"
80                android:layout_width="wrap_content"
81                android:layout_height="wrap_content"
82                android:textSize="30sp"
83                android:layout_gravity="center"/>
84
85        </LinearLayout>
86
87        <LinearLayout
88            android:layout_width="match_parent"
89            android:layout_height="wrap_content"
90            android:orientation="horizontal"
91            android:layout_margin="10dp">
92
93            <TextView
94                android:layout_width="500dp"
95                android:layout_height="wrap_content"
96                android:textSize="30sp"
97                android:text="RotaryIME state"/>
98
99            <Switch
100                android:id="@+id/rotary_ime_toggle"
101                android:layout_width="wrap_content"
102                android:layout_height="wrap_content"
103                android:textSize="30sp"
104                android:layout_gravity="center"/>
105
106        </LinearLayout>
107
108        <LinearLayout
109            android:layout_width="match_parent"
110            android:layout_height="wrap_content"
111            android:orientation="horizontal"
112            android:layout_margin="10dp">
113
114            <TextView
115                android:layout_width="500dp"
116                android:layout_height="wrap_content"
117                android:textSize="30sp"
118                android:text="RotaryPlayground state"/>
119
120            <Switch
121                android:id="@+id/rotary_playground_toggle"
122                android:layout_width="wrap_content"
123                android:layout_height="wrap_content"
124                android:textSize="30sp"
125                android:layout_gravity="center"/>
126
127        </LinearLayout>
128    </LinearLayout>
129</ScrollView>