1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:id="@+id/scrollView" 21 style="@style/RootLayoutPadding"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="vertical"> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:orientation="vertical"> 32 33 <!-- Has Headset Buttons --> 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:orientation="vertical"> 38 <TextView 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:text="@string/analog_headset_query" 42 android:id="@+id/analog_headset_query"/> 43 <LinearLayout 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:orientation="horizontal" 47 android:layout_marginLeft="10dp"> 48 <Button 49 android:text="@string/audio_general_yes" 50 android:layout_width="wrap_content" 51 android:layout_height="match_parent" 52 android:id="@+id/headset_analog_port_yes"/> 53 <Button 54 android:text="@string/audio_general_no" 55 android:layout_width="wrap_content" 56 android:layout_height="match_parent" 57 android:id="@+id/headset_analog_port_no"/> 58 </LinearLayout> 59 </LinearLayout> 60 61 <!-- Device Connection --> 62 <TextView 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:id="@+id/headset_analog_plug_message"/> 66 <TextView 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:id="@+id/headset_analog_device_type"/> 70 <TextView 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:id="@+id/headset_analog_name"/> 74 75 <!-- Player Controls --> 76 <LinearLayout 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:orientation="horizontal" 80 android:layout_marginLeft="10dp"> 81 <Button 82 android:text="@string/analog_headset_play" 83 android:layout_width="wrap_content" 84 android:layout_height="match_parent" 85 android:id="@+id/headset_analog_play"/> 86 <Button 87 android:text="@string/analog_headset_stop" 88 android:layout_width="wrap_content" 89 android:layout_height="match_parent" 90 android:id="@+id/headset_analog_stop"/> 91 </LinearLayout> 92 </LinearLayout> 93 94 <!-- Playback Status --> 95 <LinearLayout 96 android:layout_width="match_parent" 97 android:layout_height="wrap_content" 98 android:orientation="vertical"> 99 100 <TextView 101 android:layout_width="match_parent" 102 android:layout_height="wrap_content" 103 android:id="@+id/analog_headset_playback_status"/> 104 105 <LinearLayout 106 android:layout_width="match_parent" 107 android:layout_height="wrap_content" 108 android:orientation="horizontal" 109 android:layout_marginLeft="10dp"> 110 <Button 111 android:text="@string/audio_general_yes" 112 android:layout_width="wrap_content" 113 android:layout_height="match_parent" 114 android:id="@+id/headset_analog_play_yes"/> 115 <Button 116 android:text="@string/audio_general_no" 117 android:layout_width="wrap_content" 118 android:layout_height="match_parent" 119 android:id="@+id/headset_analog_play_no"/> 120 </LinearLayout> 121 </LinearLayout> 122 123 <!-- Device Connection --> 124 <!-- 125 <TextView 126 android:layout_width="match_parent" 127 android:layout_height="wrap_content" 128 android:id="@+id/headset_analog_plug_message"/> 129 <TextView 130 android:layout_width="match_parent" 131 android:layout_height="wrap_content" 132 android:id="@+id/headset_analog_name"/> 133 --> 134 135 <!-- Keycodes --> 136 <LinearLayout 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="vertical"> 140 <TextView 141 android:layout_width="match_parent" 142 android:layout_height="wrap_content" 143 android:id="@+id/analog_headset_keycodes_prompt"/> 144 <TextView 145 android:layout_width="match_parent" 146 android:layout_height="wrap_content" 147 android:text="@string/analog_headset_keycodes_label" 148 android:id="@+id/headset_keycodes"/> 149 <LinearLayout 150 android:layout_width="match_parent" 151 android:layout_height="wrap_content" 152 android:orientation="horizontal" 153 android:layout_marginLeft="10dp"> 154 <TextView 155 android:layout_width="wrap_content" 156 android:layout_height="wrap_content" 157 android:text="@string/analog_headset_headsethook" 158 android:paddingHorizontal="10dp" 159 android:id="@+id/headset_keycode_headsethook"/> 160 <TextView 161 android:layout_width="wrap_content" 162 android:layout_height="wrap_content" 163 android:text="@string/analog_headset_volup" 164 android:paddingHorizontal="10dp" 165 android:id="@+id/headset_keycode_volume_up"/> 166 <TextView 167 android:layout_width="wrap_content" 168 android:layout_height="wrap_content" 169 android:text="@string/analog_headset_voldown" 170 android:paddingHorizontal="10dp" 171 android:id="@+id/headset_keycode_volume_down"/> 172 </LinearLayout> 173 </LinearLayout> 174 175 <!-- Results --> 176 <TextView 177 android:layout_width="match_parent" 178 android:layout_height="wrap_content" 179 android:id="@+id/headset_results" 180 android:textSize="20dp"/> 181 182 <include layout="@layout/pass_fail_buttons" /> 183 184 </LinearLayout> 185</ScrollView> 186