1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:orientation="vertical" 21 style="@style/RootLayoutPadding"> 22 23 <ScrollView 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:id="@+id/scrollView" 27 > 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="vertical" 33 > 34 35 <LinearLayout 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:orientation="vertical" 39 android:id="@+id/frequency_mic_layout_test_noise" 40 > 41 <View 42 android:layout_width="match_parent" 43 android:layout_height="1dp" 44 android:background="?android:colorAccent" /> 45 46 <TextView 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:text="@string/frequency_mic_noise_instructions" 50 android:id="@+id/frequency_mic_noise_instructions" /> 51 52 <LinearLayout 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:orientation="horizontal"> 56 57 <LinearLayout 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:orientation="vertical" 61 android:layout_weight="2"> 62 63 <Button 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:soundEffectsEnabled="false" 67 android:text="@string/frequency_mic_test_noise_btn" 68 android:id="@+id/frequency_mic_test_noise_btn" /> 69 <ProgressBar 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:layout_weight="1" 73 android:id="@+id/frequency_mic_test_noise_progress_bar" /> 74 </LinearLayout> 75 76 <View 77 android:layout_width="1dp" 78 android:layout_height="match_parent" 79 android:background="?android:colorAccent" /> 80 81 <LinearLayout 82 android:layout_width="0dp" 83 android:layout_height="wrap_content" 84 android:orientation="vertical" 85 android:layout_weight="1"> 86 <Button 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:soundEffectsEnabled="false" 90 android:text="@string/frequency_mic_play" 91 android:id="@+id/frequency_mic_play_noise_btn" /> 92 </LinearLayout> 93 </LinearLayout> 94 <TextView 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:text="@string/frequency_mic_test_noise_result" 98 android:id="@+id/frequency_mic_test_noise_result" /> 99 </LinearLayout> 100 101 <LinearLayout 102 android:layout_width="match_parent" 103 android:layout_height="wrap_content" 104 android:orientation="vertical" 105 android:id="@+id/frequency_mic_layout_test_usb_background"> 106 107 <View 108 android:layout_width="match_parent" 109 android:layout_height="1dp" 110 android:background="?android:colorAccent" /> 111 112 <TextView 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:scrollbars="vertical" 116 android:gravity="bottom" 117 android:text="@string/frequency_mic_test_usb_background_instructions" 118 android:id="@+id/frequency_mic_test_usb_background_instructions" /> 119 120 <LinearLayout 121 android:layout_width="match_parent" 122 android:layout_height="wrap_content" 123 android:orientation="horizontal"> 124 125 <LinearLayout 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:orientation="vertical" 129 android:layout_weight="2"> 130 131 <Button 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:soundEffectsEnabled="false" 135 android:text="@string/frequency_mic_test_usb_background_btn" 136 android:id="@+id/frequency_mic_test_usb_background_btn" /> 137 <ProgressBar 138 android:layout_width="wrap_content" 139 android:layout_height="wrap_content" 140 android:layout_weight="1" 141 android:id="@+id/frequency_mic_test_usb_background_progress_bar" /> 142 </LinearLayout> 143 </LinearLayout> 144 <TextView 145 android:layout_width="match_parent" 146 android:layout_height="wrap_content" 147 android:text="@string/frequency_mic_test_usb_background_result" 148 android:id="@+id/frequency_mic_test_usb_background_result" /> 149 </LinearLayout> 150 151 <LinearLayout 152 android:layout_width="match_parent" 153 android:layout_height="wrap_content" 154 android:orientation="vertical" 155 android:id="@+id/frequency_mic_layout_test_usb_noise"> 156 157 <View 158 android:layout_width="match_parent" 159 android:layout_height="1dp" 160 android:background="?android:colorAccent" /> 161 162 <TextView 163 android:layout_width="wrap_content" 164 android:layout_height="wrap_content" 165 android:scrollbars="vertical" 166 android:gravity="bottom" 167 android:text="@string/frequency_mic_test_usb_noise_instructions" 168 android:id="@+id/frequency_mic_test_usb_noise_instructions" /> 169 170 <LinearLayout 171 android:layout_width="match_parent" 172 android:layout_height="wrap_content" 173 android:orientation="horizontal"> 174 175 <LinearLayout 176 android:layout_width="wrap_content" 177 android:layout_height="wrap_content" 178 android:orientation="vertical" 179 android:layout_weight="2"> 180 181 <Button 182 android:layout_width="wrap_content" 183 android:layout_height="wrap_content" 184 android:soundEffectsEnabled="false" 185 android:text="@string/frequency_mic_test_usb_noise_btn" 186 android:id="@+id/frequency_mic_test_usb_noise_btn" /> 187 <ProgressBar 188 android:layout_width="wrap_content" 189 android:layout_height="wrap_content" 190 android:layout_weight="1" 191 android:id="@+id/frequency_mic_test_usb_noise_progress_bar" /> 192 </LinearLayout> 193 194 <View 195 android:layout_width="1dp" 196 android:layout_height="match_parent" 197 android:background="?android:colorAccent" /> 198 199 <LinearLayout 200 android:layout_width="0dp" 201 android:layout_height="wrap_content" 202 android:orientation="vertical" 203 android:layout_weight="1"> 204 <Button 205 android:layout_width="wrap_content" 206 android:layout_height="wrap_content" 207 android:soundEffectsEnabled="false" 208 android:text="@string/frequency_mic_play" 209 android:id="@+id/frequency_mic_play_usb_noise_btn" /> 210 </LinearLayout> 211 </LinearLayout> 212 <TextView 213 android:layout_width="match_parent" 214 android:layout_height="wrap_content" 215 android:text="@string/frequency_mic_test_usb_noise_result" 216 android:id="@+id/frequency_mic_test_usb_noise_result" /> 217 </LinearLayout> 218 <View 219 android:layout_width="match_parent" 220 android:layout_height="1dp" 221 android:background="?android:colorAccent" /> 222 223 <TextView 224 android:layout_width="match_parent" 225 android:layout_height="wrap_content" 226 android:text="@string/frequency_mic_test_global_result" 227 android:id="@+id/frequency_mic_test_global_result" /> 228 229 <include layout="@layout/pass_fail_buttons" /> 230 </LinearLayout> 231 </ScrollView> 232 233</LinearLayout> 234