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