1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright 2020 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:fitsSystemWindows="true"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent">
20
21    <TextView
22        android:id="@+id/enable_buttons_desc"
23        android:layout_width="match_parent"
24        android:layout_height="wrap_content"
25        android:layout_marginLeft="30dp"
26        android:layout_marginRight="30dp"
27        android:layout_centerInParent="true"
28        android:textSize="20dp"
29        android:text="@string/display_cutout_test_instruction" />
30
31    <include layout="@layout/pass_fail_buttons"
32        android:id="@+id/pass_fail_buttons"
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:layout_marginLeft="30dp"
36        android:layout_marginRight="30dp"
37        android:layout_below="@id/enable_buttons_desc" />
38
39    <LinearLayout
40        android:id="@+id/top_buttons"
41        android:layout_width="match_parent"
42        android:layout_height="@dimen/display_cutout_test_button_size"
43        android:layout_alignParentTop="true"
44        android:visibility="gone"
45        android:orientation="horizontal" >
46        <Button
47            android:layout_width="0dp"
48            android:layout_height="match_parent"
49            android:layout_weight="1"
50            android:text="0"
51            android:textSize="10dp"
52            android:onClick="onButtonClicked"
53            android:background="@drawable/display_cutout_test_button" />
54        <Space
55            android:layout_width="0dp"
56            android:layout_height="match_parent"
57            android:layout_weight="1" />
58        <Button
59            android:layout_width="0dp"
60            android:layout_height="match_parent"
61            android:layout_weight="1"
62            android:text="1"
63            android:textSize="10dp"
64            android:onClick="onButtonClicked"
65            android:background="@drawable/display_cutout_test_button" />
66        <Space
67            android:layout_width="0dp"
68            android:layout_height="match_parent"
69            android:layout_weight="1" />
70        <Button
71            android:layout_width="0dp"
72            android:layout_height="match_parent"
73            android:layout_weight="1"
74            android:text="2"
75            android:textSize="10dp"
76            android:onClick="onButtonClicked"
77            android:background="@drawable/display_cutout_test_button" />
78        <Space
79            android:layout_width="0dp"
80            android:layout_height="match_parent"
81            android:layout_weight="1" />
82        <Button
83            android:layout_width="0dp"
84            android:layout_height="match_parent"
85            android:layout_weight="1"
86            android:text="3"
87            android:textSize="10dp"
88            android:onClick="onButtonClicked"
89            android:background="@drawable/display_cutout_test_button" />
90    </LinearLayout>
91
92    <LinearLayout
93        android:id="@+id/bottom_buttons"
94        android:layout_width="match_parent"
95        android:layout_height="@dimen/display_cutout_test_button_size"
96        android:layout_alignParentBottom="true"
97        android:visibility="gone"
98        android:orientation="horizontal" >
99        <Button
100            android:layout_width="0dp"
101            android:layout_height="match_parent"
102            android:layout_weight="1"
103            android:text="11"
104            android:textSize="10dp"
105            android:onClick="onButtonClicked"
106            android:background="@drawable/display_cutout_test_button" />
107        <Space
108            android:layout_width="0dp"
109            android:layout_height="match_parent"
110            android:layout_weight="1" />
111        <Button
112            android:layout_width="0dp"
113            android:layout_height="match_parent"
114            android:layout_weight="1"
115            android:text="10"
116            android:textSize="10dp"
117            android:onClick="onButtonClicked"
118            android:background="@drawable/display_cutout_test_button" />
119        <Space
120            android:layout_width="0dp"
121            android:layout_height="match_parent"
122            android:layout_weight="1" />
123        <Button
124            android:layout_width="0dp"
125            android:layout_height="match_parent"
126            android:layout_weight="1"
127            android:text="9"
128            android:textSize="10dp"
129            android:onClick="onButtonClicked"
130            android:background="@drawable/display_cutout_test_button" />
131        <Space
132            android:layout_width="0dp"
133            android:layout_height="match_parent"
134            android:layout_weight="1" />
135        <Button
136            android:layout_width="0dp"
137            android:layout_height="match_parent"
138            android:layout_weight="1"
139            android:text="8"
140            android:textSize="10dp"
141            android:onClick="onButtonClicked"
142            android:background="@drawable/display_cutout_test_button" />
143
144    </LinearLayout>
145
146    <LinearLayout
147        android:id="@+id/left_buttons"
148        android:layout_width="@dimen/display_cutout_test_button_size"
149        android:layout_height="match_parent"
150        android:layout_marginTop="@dimen/display_cutout_test_button_size"
151        android:layout_marginBottom="@dimen/display_cutout_test_button_size"
152        android:layout_alignParentLeft="true"
153        android:visibility="gone"
154        android:orientation="vertical" >
155        <Button
156            android:layout_width="match_parent"
157            android:layout_height="0dp"
158            android:layout_weight="1"
159            android:text="15"
160            android:textSize="10dp"
161            android:onClick="onButtonClicked"
162            android:background="@drawable/display_cutout_test_button" />
163        <Space
164            android:layout_width="match_parent"
165            android:layout_height="0dp"
166            android:layout_weight="1" />
167        <Button
168            android:layout_width="match_parent"
169            android:layout_height="0dp"
170            android:layout_weight="1"
171            android:text="14"
172            android:textSize="10dp"
173            android:onClick="onButtonClicked"
174            android:background="@drawable/display_cutout_test_button" />
175        <Space
176            android:layout_width="match_parent"
177            android:layout_height="0dp"
178            android:layout_weight="1" />
179        <Button
180            android:layout_width="match_parent"
181            android:layout_height="0dp"
182            android:layout_weight="1"
183            android:text="13"
184            android:textSize="10dp"
185            android:onClick="onButtonClicked"
186            android:background="@drawable/display_cutout_test_button" />
187        <Space
188            android:layout_width="match_parent"
189            android:layout_height="0dp"
190            android:layout_weight="1" />
191        <Button
192            android:layout_width="match_parent"
193            android:layout_height="0dp"
194            android:layout_weight="1"
195            android:text="12"
196            android:textSize="10dp"
197            android:onClick="onButtonClicked"
198            android:background="@drawable/display_cutout_test_button" />
199    </LinearLayout>
200
201    <LinearLayout
202        android:id="@+id/right_buttons"
203        android:layout_width="@dimen/display_cutout_test_button_size"
204        android:layout_height="match_parent"
205        android:layout_marginTop="@dimen/display_cutout_test_button_size"
206        android:layout_marginBottom="@dimen/display_cutout_test_button_size"
207        android:layout_alignParentRight="true"
208        android:visibility="gone"
209        android:orientation="vertical" >
210        <Button
211            android:layout_width="match_parent"
212            android:layout_height="0dp"
213            android:layout_weight="1"
214            android:text="4"
215            android:textSize="10dp"
216            android:onClick="onButtonClicked"
217            android:background="@drawable/display_cutout_test_button" />
218        <Space
219            android:layout_width="match_parent"
220            android:layout_height="0dp"
221            android:layout_weight="1" />
222        <Button
223            android:layout_width="match_parent"
224            android:layout_height="0dp"
225            android:layout_weight="1"
226            android:text="5"
227            android:textSize="10dp"
228            android:onClick="onButtonClicked"
229            android:background="@drawable/display_cutout_test_button" />
230        <Space
231            android:layout_width="match_parent"
232            android:layout_height="0dp"
233            android:layout_weight="1" />
234        <Button
235            android:layout_width="match_parent"
236            android:layout_height="0dp"
237            android:layout_weight="1"
238            android:text="6"
239            android:textSize="10dp"
240            android:onClick="onButtonClicked"
241            android:background="@drawable/display_cutout_test_button" />
242        <Space
243            android:layout_width="match_parent"
244            android:layout_height="0dp"
245            android:layout_weight="1" />
246        <Button
247            android:layout_width="match_parent"
248            android:layout_height="0dp"
249            android:layout_weight="1"
250            android:text="7"
251            android:textSize="10dp"
252            android:onClick="onButtonClicked"
253            android:background="@drawable/display_cutout_test_button" />
254    </LinearLayout>
255
256</RelativeLayout>
257