1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:fitsSystemWindows="@bool/fit_system_windows" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:keepScreenOn="true" 23 android:orientation="vertical" 24 style="@style/RootLayoutPadding" 25 tools:ignore="Autofill"> 26 27 <ScrollView 28 android:layout_width="fill_parent" 29 android:layout_height="wrap_content"> 30 31 <LinearLayout 32 android:orientation="vertical" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content"> 35 36 <TextView 37 android:text="@string/nan_accuracy_test_instructions" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:scrollbars="vertical"/> 41 42 <CheckBox 43 android:id="@+id/is_reference_device" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:text="@string/is_reference_device_checkbox_text"/> 47 48 <LinearLayout 49 android:id="@+id/dut_mode_layout" 50 android:orientation="vertical" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content"> 53 54 <CheckBox 55 android:id="@+id/is_manual_pass" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:text="@string/is_manual_pass_text"/> 59 60 <TextView 61 android:id="@+id/test_distance_radio_group_description" 62 android:layout_height="wrap_content" 63 android:layout_width="wrap_content" 64 android:text="@string/select_test_distance_presence"/> 65 66 <HorizontalScrollView 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:scrollbars="horizontal"> 70 71 <RadioGroup 72 android:id="@+id/test_distance_radio_group" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:checkedButton="@id/distance_10cm" 76 android:orientation="horizontal"> 77 78 <RadioButton 79 android:id="@+id/distance_10cm" 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:text="@string/distance_10cm_presence"/> 83 84 <RadioButton 85 android:id="@+id/distance_1m" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:text="@string/distance_1m_presence"/> 89 90 <RadioButton 91 android:id="@+id/distance_3m" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:text="@string/distance_3m_presence"/> 95 96 <RadioButton 97 android:id="@+id/distance_5m" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:text="@string/distance_5m_presence"/> 101 </RadioGroup> 102 </HorizontalScrollView> 103 104 <HorizontalScrollView 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 android:scrollbars="none"> 108 109 <LinearLayout 110 android:id="@+id/start_stop_layout" 111 android:orientation="horizontal" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 style="?android:attr/buttonBarStyle"> 115 116 <Button 117 android:id="@+id/start_test" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:text="@string/start_test_presence" 121 style="?android:attr/buttonBarButtonStyle"/> 122 123 <Button 124 android:id="@+id/stop_test" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" 127 android:text="@string/stop_test_presence" 128 style="?android:attr/buttonBarButtonStyle"/> 129 </LinearLayout> 130 </HorizontalScrollView> 131 132 <HorizontalScrollView 133 android:layout_width="match_parent" 134 android:layout_height="wrap_content" 135 android:scrollbars="none"> 136 137 <EditText 138 android:id="@+id/service_id_input" 139 android:layout_width="wrap_content" 140 android:layout_height="wrap_content" 141 android:inputType="numberDecimal|numberSigned" 142 android:hint="@string/service_id_input_presence"/> 143 </HorizontalScrollView> 144 145 <TextView 146 android:id="@+id/device_found_info" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:text="@string/device_found_presence"/> 150 151 <TextView 152 android:id="@+id/test_status_info" 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content"/> 155 156 </LinearLayout> 157 <LinearLayout 158 android:id="@+id/ref_mode_layout" 159 android:orientation="vertical" 160 android:layout_width="match_parent" 161 android:layout_height="wrap_content"> 162 163 <Button 164 android:id="@+id/start_publishing" 165 android:layout_width="wrap_content" 166 android:layout_height="wrap_content" 167 android:text="@string/start_publishing_presence"/> 168 169 <Button 170 android:id="@+id/stop_publishing" 171 android:layout_width="wrap_content" 172 android:layout_height="wrap_content" 173 android:text="@string/stop_publishing_presence"/> 174 175 <TextView 176 android:id="@+id/service_id_info" 177 android:layout_width="wrap_content" 178 android:layout_height="wrap_content" 179 android:text="@string/service_id_info_presence"/> 180 </LinearLayout> 181 182 <include 183 android:layout_width="match_parent" 184 android:layout_height="wrap_content" 185 layout="@layout/pass_fail_buttons"/> 186 187 </LinearLayout> 188 </ScrollView> 189</RelativeLayout> 190