1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 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:orientation="vertical" >
36
37            <TextView
38                android:id="@+id/companion_service_test_title"
39                android:layout_width="match_parent"
40                android:layout_height="wrap_content"
41                style="@style/InstructionsFont"/>
42
43            <!-- The padding here matches what InstructionsFont has so that these look
44                 nice together-->
45            <TextView
46                android:id="@+id/companion_service_test_description"
47                android:layout_width="match_parent"
48                android:layout_height="wrap_content"
49                android:padding="10dp"
50                style="@style/InstructionsSmallFont"/>
51
52            <Button
53                android:id="@+id/companion_service_test_button"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:layout_margin="24dp"/>
57
58            <!-- Used to display test state in cases where we verify a state  -->
59            <TextView
60                android:id="@+id/companion_service_test_state"
61                android:layout_width="match_parent"
62                android:layout_height="wrap_content"
63                android:padding="10dp"
64                style="@style/InstructionsSmallFont"/>
65
66            <!-- Pass / fail buttons for the test step -->
67            <LinearLayout
68                android:id="@+id/button_layout"
69                android:layout_width="match_parent"
70                android:layout_height="wrap_content"
71                android:gravity="center_horizontal"
72                android:orientation="horizontal">
73
74                <Button
75                    android:id="@+id/test_step_passed"
76                    android:layout_width="wrap_content"
77                    android:layout_height="wrap_content"
78                    android:text="@string/pass_button_text"/>
79
80                <Button
81                    android:id="@+id/test_step_failed"
82                    android:layout_width="wrap_content"
83                    android:layout_height="wrap_content"
84                    android:text="@string/fail_button_text"/>
85
86            </LinearLayout>
87
88        </LinearLayout>
89
90    </ScrollView>
91
92    <include
93        android:layout_width="match_parent"
94        android:layout_height="wrap_content"
95        android:layout_weight="0"
96        layout="@layout/pass_fail_buttons" />
97
98</LinearLayout>
99