1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical" 22 style="@style/RootLayoutPadding"> 23 24 <ScrollView 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:id="@+id/scrollView"> 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="vertical"> 33 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:orientation="vertical" 38 android:id="@+id/vr_layout_test_tone"> 39 40 <View 41 android:layout_width="match_parent" 42 android:layout_height="1dp" 43 android:background="?android:colorAccent" /> 44 45 <TextView 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:scrollbars="vertical" 49 android:gravity="bottom" 50 android:text="@string/vr_test_tone_instructions" 51 android:id="@+id/vr_test_tone_instructions" /> 52 53 <LinearLayout 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:orientation="horizontal"> 57 58 <LinearLayout 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:orientation="vertical" 62 android:layout_weight="2"> 63 64 <Button 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:soundEffectsEnabled="false" 68 android:text="@string/af_button_test" 69 android:id="@+id/vr_button_test_tone" /> 70 <ProgressBar 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_weight="1" 74 android:id="@+id/vr_test_tone_progress_bar" /> 75 76 </LinearLayout> 77 78 <View 79 android:layout_width="1dp" 80 android:layout_height="match_parent" 81 android:background="?android:colorAccent" /> 82 83 <LinearLayout 84 android:layout_width="0dp" 85 android:layout_height="wrap_content" 86 android:orientation="vertical" 87 android:layout_weight="1"> 88 <Button 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:soundEffectsEnabled="false" 92 android:text="@string/af_button_play" 93 android:id="@+id/vr_button_play_tone" /> 94 </LinearLayout> 95 </LinearLayout> 96 <TextView 97 android:layout_width="match_parent" 98 android:layout_height="wrap_content" 99 android:text="@string/af_test_results" 100 android:id="@+id/vr_test_tone_result" /> 101 </LinearLayout> 102 103 <LinearLayout 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:orientation="vertical" 107 android:id="@+id/vr_layout_test_noise"> 108 109 <View 110 android:layout_width="match_parent" 111 android:layout_height="1dp" 112 android:background="?android:colorAccent" /> 113 114 <TextView 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:scrollbars="vertical" 118 android:gravity="bottom" 119 android:text="@string/vr_test_noise_instructions" 120 android:id="@+id/vr_test_noise_instructions" /> 121 122 <LinearLayout 123 android:layout_width="match_parent" 124 android:layout_height="wrap_content" 125 android:orientation="horizontal"> 126 127 <LinearLayout 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:orientation="vertical" 131 android:layout_weight="2"> 132 133 <Button 134 android:layout_width="wrap_content" 135 android:layout_height="wrap_content" 136 android:soundEffectsEnabled="false" 137 android:text="@string/af_button_test" 138 android:id="@+id/vr_button_test_noise" /> 139 <ProgressBar 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content" 142 android:layout_weight="1" 143 android:id="@+id/vr_test_noise_progress_bar" /> 144 </LinearLayout> 145 146 <View 147 android:layout_width="1dp" 148 android:layout_height="match_parent" 149 android:background="?android:colorAccent" /> 150 151 <LinearLayout 152 android:layout_width="0dp" 153 android:layout_height="wrap_content" 154 android:orientation="vertical" 155 android:layout_weight="1"> 156 <Button 157 android:layout_width="wrap_content" 158 android:layout_height="wrap_content" 159 android:soundEffectsEnabled="false" 160 android:text="@string/af_button_play" 161 android:id="@+id/vr_button_play_noise" /> 162 </LinearLayout> 163 </LinearLayout> 164 <TextView 165 android:layout_width="match_parent" 166 android:layout_height="wrap_content" 167 android:text="@string/af_test_results" 168 android:id="@+id/vr_test_noise_result" /> 169 </LinearLayout> 170 171 <LinearLayout 172 android:layout_width="match_parent" 173 android:layout_height="wrap_content" 174 android:orientation="vertical" 175 android:id="@+id/vr_layout_test_usb_background"> 176 177 <View 178 android:layout_width="match_parent" 179 android:layout_height="1dp" 180 android:background="?android:colorAccent" /> 181 182 <TextView 183 android:layout_width="wrap_content" 184 android:layout_height="wrap_content" 185 android:scrollbars="vertical" 186 android:gravity="bottom" 187 android:text="@string/vr_test_usb_background_instructions" 188 android:id="@+id/vr_test_usb_background_instructions" /> 189 190 <LinearLayout 191 android:layout_width="match_parent" 192 android:layout_height="wrap_content" 193 android:orientation="horizontal"> 194 195 <LinearLayout 196 android:layout_width="wrap_content" 197 android:layout_height="wrap_content" 198 android:orientation="vertical" 199 android:layout_weight="2"> 200 201 <Button 202 android:layout_width="wrap_content" 203 android:layout_height="wrap_content" 204 android:soundEffectsEnabled="false" 205 android:text="@string/af_button_test" 206 android:id="@+id/vr_button_test_usb_background" /> 207 <ProgressBar 208 android:layout_width="wrap_content" 209 android:layout_height="wrap_content" 210 android:layout_weight="1" 211 android:id="@+id/vr_test_usb_background_progress_bar" /> 212 </LinearLayout> 213 </LinearLayout> 214 <TextView 215 android:layout_width="match_parent" 216 android:layout_height="wrap_content" 217 android:text="@string/af_test_results" 218 android:id="@+id/vr_test_usb_background_result" /> 219 </LinearLayout> 220 221 <LinearLayout 222 android:layout_width="match_parent" 223 android:layout_height="wrap_content" 224 android:orientation="vertical" 225 android:id="@+id/vr_layout_test_usb_noise"> 226 227 <View 228 android:layout_width="match_parent" 229 android:layout_height="1dp" 230 android:background="?android:colorAccent" /> 231 232 <TextView 233 android:layout_width="wrap_content" 234 android:layout_height="wrap_content" 235 android:scrollbars="vertical" 236 android:gravity="bottom" 237 android:text="@string/vr_test_usb_noise_instructions" 238 android:id="@+id/vr_test_usb_noise_instructions" /> 239 240 <LinearLayout 241 android:layout_width="match_parent" 242 android:layout_height="wrap_content" 243 android:orientation="horizontal"> 244 245 <LinearLayout 246 android:layout_width="wrap_content" 247 android:layout_height="wrap_content" 248 android:orientation="vertical" 249 android:layout_weight="2"> 250 251 <Button 252 android:layout_width="wrap_content" 253 android:layout_height="wrap_content" 254 android:soundEffectsEnabled="false" 255 android:text="@string/af_button_test" 256 android:id="@+id/vr_button_test_usb_noise" /> 257 <ProgressBar 258 android:layout_width="wrap_content" 259 android:layout_height="wrap_content" 260 android:layout_weight="1" 261 android:id="@+id/vr_test_usb_noise_progress_bar" /> 262 </LinearLayout> 263 264 <View 265 android:layout_width="1dp" 266 android:layout_height="match_parent" 267 android:background="?android:colorAccent" /> 268 269 <LinearLayout 270 android:layout_width="0dp" 271 android:layout_height="wrap_content" 272 android:orientation="vertical" 273 android:layout_weight="1"> 274 <Button 275 android:layout_width="wrap_content" 276 android:layout_height="wrap_content" 277 android:soundEffectsEnabled="false" 278 android:text="@string/af_button_play" 279 android:id="@+id/vr_button_play_usb_noise" /> 280 </LinearLayout> 281 </LinearLayout> 282 <TextView 283 android:layout_width="match_parent" 284 android:layout_height="wrap_content" 285 android:text="@string/af_test_results" 286 android:id="@+id/vr_test_usb_noise_result" /> 287 </LinearLayout> 288 <View 289 android:layout_width="match_parent" 290 android:layout_height="1dp" 291 android:background="?android:colorAccent" /> 292 293 <TextView 294 android:layout_width="match_parent" 295 android:layout_height="wrap_content" 296 android:text="@string/af_global_test_results" 297 android:id="@+id/vr_test_global_result" /> 298 299 <include layout="@layout/pass_fail_buttons" /> 300 </LinearLayout> 301 </ScrollView> 302 303</LinearLayout> 304