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