You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
style="@style/RootLayoutPadding">
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<TextView
android:id="@+id/bubble_test_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/InstructionsFont"/>
<!-- The padding here matches what InstructionsFont has so that these look
nice together-->
<TextView
android:id="@+id/bubble_test_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
style="@style/InstructionsSmallFont"/>
<Button
android:id="@+id/bubble_test_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="24dp"/>
<!-- Used to display test state in cases where we verify a state (e.g. settings) -->
<TextView
android:id="@+id/bubble_test_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
style="@style/InstructionsSmallFont"/>
<!-- Pass / fail buttons for the test step -->
<LinearLayout
android:id="@+id/button_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="horizontal">
<Button
android:id="@+id/test_step_passed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pass_button_text"/>
<Button
android:id="@+id/test_step_failed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fail_button_text"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
layout="@layout/pass_fail_buttons" />
</LinearLayout>