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.
87 lines
3.8 KiB
87 lines
3.8 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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:id="@+id/root_view"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:descendantFocusability="beforeDescendants"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@+id/switch_widget">
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:paddingTop="4dp">
|
|
<TextView
|
|
android:id="@+id/test_instructions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:padding="10dp" />
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="8dp"
|
|
android:gravity="center_vertical">
|
|
<TextView android:id="@+id/widget_label"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="18sp"
|
|
android:layout_weight="1"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="8dp" />
|
|
<Switch android:id="@+id/switch_widget"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:visibility="gone"
|
|
android:nextFocusDown="@+id/edit_text_widget"/>
|
|
<EditText android:id="@+id/edit_text_widget"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ems="6"
|
|
android:singleLine="true"
|
|
android:gravity="center"
|
|
android:visibility="gone"
|
|
android:nextFocusDown="@+id/update_button"/>
|
|
<Button android:id="@+id/update_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/policy_transparency_update_button_label"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:visibility="gone"
|
|
android:nextFocusDown="@+id/spinner_widget"/>
|
|
<Spinner android:id="@+id/spinner_widget"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:nextFocusDown="@+id/open_settings_button"/>
|
|
</LinearLayout>
|
|
|
|
<Button android:id="@+id/open_settings_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/policy_transparency_open_settings_label"
|
|
android:nextFocusUp="@+id/switch_widget"/>
|
|
|
|
<include layout="@layout/pass_fail_buttons"/>
|
|
</LinearLayout> |