138 lines
5.3 KiB
XML
138 lines
5.3 KiB
XML
<?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:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:text="@string/has_vibrator_test_description"
|
|
style="@style/InstructionsSmallFont"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:text="@string/has_vibrator_response_label"
|
|
style="@style/InstructionsSmallFont"/>
|
|
|
|
<TextView
|
|
android:id="@+id/has_vibrator_api_result_textview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:gravity="center"
|
|
android:textStyle="bold"
|
|
style="@style/InstructionsSmallFont"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:text="@string/has_vibrator_start_test_label"
|
|
style="@style/InstructionsSmallFont"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Button
|
|
android:id="@+id/vibrate_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/has_vibrator_test_vibrate_button_text"
|
|
android:layout_margin="24dp"
|
|
android:layout_centerHorizontal="true"/>
|
|
|
|
<TextView
|
|
android:id="@+id/vibrate_countdown_textview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="24dp"
|
|
android:layout_centerHorizontal="true"
|
|
style="@style/InstructionsFont"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/did_device_vibrate_textview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:text="@string/has_vibrator_did_device_vibrate_label"
|
|
android:visibility="gone"
|
|
style="@style/InstructionsSmallFont"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_result_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:visibility="gone"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/yes_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/yes_string"/>
|
|
|
|
<Button
|
|
android:id="@+id/no_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/no_string"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/test_result_textview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:visibility="gone"
|
|
style="@style/InstructionsSmallFont"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<include
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
layout="@layout/pass_fail_buttons"/>
|
|
|
|
</LinearLayout> |