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:layout_width="match_parent"
19              android:layout_height="match_parent"
20              android:orientation="vertical"
21              android:gravity="center_horizontal"
22              style="@style/RootLayoutPadding">
23
24    <ScrollView
25        android:layout_width="match_parent"
26        android:layout_height="0dp"
27        android:layout_weight="1"
28        android:orientation="vertical">
29
30        <LinearLayout
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:gravity="center_horizontal"
34            android:orientation="vertical" >
35
36            <TextView
37                android:id="@+id/bubble_test_title"
38                android:layout_width="match_parent"
39                android:layout_height="wrap_content"
40                style="@style/InstructionsFont"/>
41
42            <!-- The padding here matches what InstructionsFont has so that these look
43                 nice together-->
44            <TextView
45                android:id="@+id/bubble_test_description"
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:padding="10dp"
49                style="@style/InstructionsSmallFont"/>
50
51            <Button
52                android:id="@+id/bubble_test_button"
53                android:layout_width="wrap_content"
54                android:layout_height="wrap_content"
55                android:layout_margin="24dp"/>
56
57            <!-- Pass / fail buttons for the test step -->
58            <LinearLayout
59                android:id="@+id/button_layout"
60                android:layout_width="match_parent"
61                android:layout_height="wrap_content"
62                android:gravity="center_horizontal"
63                android:orientation="horizontal">
64
65                <Button
66                    android:id="@+id/test_step_passed"
67                    android:layout_width="wrap_content"
68                    android:layout_height="wrap_content"
69                    android:text="@string/pass_button_text"/>
70
71                <Button
72                    android:id="@+id/test_step_failed"
73                    android:layout_width="wrap_content"
74                    android:layout_height="wrap_content"
75                    android:text="@string/fail_button_text"/>
76
77            </LinearLayout>
78
79        </LinearLayout>
80
81    </ScrollView>
82
83    <include
84        android:layout_width="match_parent"
85        android:layout_height="wrap_content"
86        android:layout_weight="0"
87        layout="@layout/pass_fail_buttons" />
88
89</LinearLayout>