1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2019 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18              android:fitsSystemWindows="true"
19              android:layout_width="match_parent"
20              android:layout_height="match_parent"
21              android:orientation="vertical"
22              android:gravity="center_horizontal"
23              style="@style/RootLayoutPadding">
24
25    <ScrollView
26        android:layout_width="match_parent"
27        android:layout_height="0dp"
28        android:layout_weight="1"
29        android:orientation="vertical">
30
31        <LinearLayout
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:gravity="center_horizontal"
35            android:animateLayoutChanges="true"
36            android:orientation="vertical">
37
38            <TextView
39                android:layout_width="match_parent"
40                android:layout_height="wrap_content"
41                android:padding="10dp"
42                android:text="@string/has_vibrator_test_description"
43                style="@style/InstructionsSmallFont"/>
44
45            <TextView
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:padding="10dp"
49                android:text="@string/has_vibrator_response_label"
50                style="@style/InstructionsSmallFont"/>
51
52            <TextView
53                android:id="@+id/has_vibrator_api_result_textview"
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content"
56                android:padding="10dp"
57                android:gravity="center"
58                android:textStyle="bold"
59                style="@style/InstructionsSmallFont"/>
60
61            <TextView
62                android:layout_width="match_parent"
63                android:layout_height="wrap_content"
64                android:padding="10dp"
65                android:text="@string/has_vibrator_start_test_label"
66                style="@style/InstructionsSmallFont"/>
67
68            <RelativeLayout
69                android:layout_width="match_parent"
70                android:layout_height="wrap_content">
71
72                <Button
73                    android:id="@+id/vibrate_button"
74                    android:layout_width="wrap_content"
75                    android:layout_height="wrap_content"
76                    android:text="@string/has_vibrator_test_vibrate_button_text"
77                    android:layout_margin="24dp"
78                    android:layout_centerHorizontal="true"/>
79
80                <TextView
81                    android:id="@+id/vibrate_countdown_textview"
82                    android:layout_width="wrap_content"
83                    android:layout_height="wrap_content"
84                    android:layout_margin="24dp"
85                    android:layout_centerHorizontal="true"
86                    style="@style/InstructionsFont"/>
87
88            </RelativeLayout>
89
90            <TextView
91                android:id="@+id/did_device_vibrate_textview"
92                android:layout_width="match_parent"
93                android:layout_height="wrap_content"
94                android:padding="10dp"
95                android:text="@string/has_vibrator_did_device_vibrate_label"
96                android:visibility="gone"
97                style="@style/InstructionsSmallFont"/>
98
99            <LinearLayout
100                android:id="@+id/layout_result_buttons"
101                android:layout_width="match_parent"
102                android:layout_height="wrap_content"
103                android:gravity="center_horizontal"
104                android:visibility="gone"
105                android:orientation="horizontal">
106
107                <Button
108                    android:id="@+id/yes_button"
109                    android:layout_width="wrap_content"
110                    android:layout_height="wrap_content"
111                    android:text="@string/yes_string"/>
112
113                <Button
114                    android:id="@+id/no_button"
115                    android:layout_width="wrap_content"
116                    android:layout_height="wrap_content"
117                    android:text="@string/no_string"/>
118
119            </LinearLayout>
120
121            <TextView
122                android:id="@+id/test_result_textview"
123                android:layout_width="match_parent"
124                android:layout_height="wrap_content"
125                android:padding="10dp"
126                android:visibility="gone"
127                style="@style/InstructionsSmallFont"/>
128
129        </LinearLayout>
130
131    </ScrollView>
132
133    <include
134        android:layout_width="match_parent"
135        android:layout_height="wrap_content"
136        android:layout_weight="0"
137        layout="@layout/pass_fail_buttons"/>
138
139</LinearLayout>