• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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            <!-- Used to display test state in cases where we verify a state (e.g. settings) -->
58            <TextView
59                android:id="@+id/bubble_test_state"
60                android:layout_width="match_parent"
61                android:layout_height="wrap_content"
62                android:padding="10dp"
63                style="@style/InstructionsSmallFont"/>
64
65            <!-- Pass / fail buttons for the test step -->
66            <LinearLayout
67                android:id="@+id/button_layout"
68                android:layout_width="match_parent"
69                android:layout_height="wrap_content"
70                android:gravity="center_horizontal"
71                android:orientation="horizontal">
72
73                <Button
74                    android:id="@+id/test_step_passed"
75                    android:layout_width="wrap_content"
76                    android:layout_height="wrap_content"
77                    android:text="@string/pass_button_text"/>
78
79                <Button
80                    android:id="@+id/test_step_failed"
81                    android:layout_width="wrap_content"
82                    android:layout_height="wrap_content"
83                    android:text="@string/fail_button_text"/>
84
85            </LinearLayout>
86
87        </LinearLayout>
88
89    </ScrollView>
90
91    <include
92        android:layout_width="match_parent"
93        android:layout_height="wrap_content"
94        android:layout_weight="0"
95        layout="@layout/pass_fail_buttons" />
96
97</LinearLayout>