1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 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:layout_width="match_parent"
18    android:layout_height="match_parent"
19    android:orientation="vertical">
20
21    <TextView
22            android:id="@+id/eir_instructions"
23            android:layout_height="wrap_content"
24            android:layout_width="wrap_content"
25            android:text="@string/bluetooth_eir_advertising_instructions"/>
26
27    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:orientation="horizontal">
31
32        <TextView
33            android:layout_height="wrap_content"
34            android:layout_width="wrap_content"
35            android:textSize="30sp"
36            android:text="@string/bluetooth_eir_advertising_state"
37            android:layout_gravity="center"/>
38        <Switch
39            android:id="@+id/advertising_toggle"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:textSize="30sp"
43            android:layout_gravity="center"/>
44        <TextView
45            android:layout_height="wrap_content"
46            android:layout_width="wrap_content"
47            android:textSize="30sp"
48            android:text="@string/bluetooth_eir_adapter_state"
49            android:layout_gravity="center"/>
50        <Switch
51            android:id="@+id/bt_adapter_toggle"
52            android:layout_width="wrap_content"
53            android:layout_height="wrap_content"
54            android:textSize="30sp"
55            android:layout_gravity="center"/>
56    </LinearLayout>
57
58    <TextView
59        android:id="@+id/uuid_instructions"
60        android:layout_height="wrap_content"
61        android:layout_width="wrap_content"
62        android:text="@string/bluetooth_eir_uuid_instructions"/>
63
64    <Button
65        android:id="@+id/reset_uuid_defaults"
66        android:layout_width="200dp"
67        android:layout_height="wrap_content"
68        android:text="Reset UUIDs"/>
69
70    <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
71        android:layout_width="wrap_content"
72        android:layout_height="match_parent"
73        android:columnCount = "2">
74
75        <LinearLayout
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"
78            android:orientation="horizontal"
79            android:layout_margin="10dp">
80
81            <EditText
82                android:id="@+id/uuid1"
83                android:layout_width="575dp"
84                android:layout_height="wrap_content"
85                android:textSize="30sp"
86                android:inputType="text"/>
87
88            <Switch
89                android:id="@+id/uuid1_toggle"
90                android:layout_width="wrap_content"
91                android:layout_height="wrap_content"
92                android:textSize="30sp"
93                android:layout_gravity="center"/>
94        </LinearLayout>
95
96        <LinearLayout
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:orientation="horizontal"
100            android:layout_margin="10dp">
101
102            <EditText
103                android:id="@+id/uuid2"
104                android:layout_width="575dp"
105                android:layout_height="wrap_content"
106                android:textSize="30sp"
107                android:inputType="text"/>
108
109            <Switch
110                android:id="@+id/uuid2_toggle"
111                android:layout_width="wrap_content"
112                android:layout_height="wrap_content"
113                android:textSize="30sp"
114                android:layout_gravity="center"/>
115        </LinearLayout>
116
117        <LinearLayout
118            android:layout_width="match_parent"
119            android:layout_height="wrap_content"
120            android:orientation="horizontal"
121            android:layout_margin="10dp">
122
123            <EditText
124                android:id="@+id/uuid3"
125                android:layout_width="575dp"
126                android:layout_height="wrap_content"
127                android:textSize="30sp"
128                android:inputType="text"/>
129
130            <Switch
131                android:id="@+id/uuid3_toggle"
132                android:layout_width="wrap_content"
133                android:layout_height="wrap_content"
134                android:textSize="30sp"
135                android:layout_gravity="center"/>
136        </LinearLayout>
137
138        <LinearLayout
139            android:layout_width="match_parent"
140            android:layout_height="wrap_content"
141            android:orientation="horizontal"
142            android:layout_margin="10dp">
143
144            <EditText
145                android:id="@+id/uuid4"
146                android:layout_width="575dp"
147                android:layout_height="wrap_content"
148                android:textSize="30sp"
149                android:inputType="text"/>
150
151            <Switch
152                android:id="@+id/uuid4_toggle"
153                android:layout_width="wrap_content"
154                android:layout_height="wrap_content"
155                android:textSize="30sp"
156                android:layout_gravity="center"/>
157        </LinearLayout>
158    </GridLayout>
159</LinearLayout>
160