1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2023 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 android:layout_width="match_parent" 18 android:layout_height="wrap_content" 19 android:orientation="horizontal" 20 android:baselineAligned="false" 21 android:weightSum="2" 22 xmlns:android="http://schemas.android.com/apk/res/android" > 23 <ScrollView 24 android:layout_width="0dp" 25 android:layout_height="wrap_content" 26 android:layout_weight="1" > 27 <LinearLayout android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical" > 30 <LinearLayout android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="horizontal" > 33 <Button 34 android:id="@+id/button_radio_close" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:text="@string/radio_close" /> 38 <Space 39 android:layout_width="3dp" 40 android:layout_height="match_parent" /> 41 <Button 42 android:id="@+id/button_radio_cancel" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:text="@string/radio_cancel" /> 46 <Space 47 android:layout_width="3dp" 48 android:layout_height="match_parent" /> 49 <TextView 50 android:id="@+id/text_fm_hd_state" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:text="@string/radio_fm_hd_state" 54 android:visibility="gone" /> 55 <Switch 56 android:id="@+id/toggle_fm_hd_state" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_gravity="center" 60 android:visibility="gone" /> 61 <Space 62 android:layout_width="3dp" 63 android:layout_height="match_parent" /> 64 <TextView 65 android:id="@+id/text_am_hd_state" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:text="@string/radio_am_hd_state" 69 android:visibility="gone" /> 70 <Switch 71 android:id="@+id/toggle_am_hd_state" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:layout_gravity="center" 75 android:visibility="gone" /> 76 </LinearLayout> 77 <TextView 78 android:id="@+id/text_tuning_status" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:text="@string/empty" /> 82 <LinearLayout android:id="@+id/layout_tune" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:orientation="horizontal" 86 android:visibility="gone" > 87 <TextView 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:text="@string/radio_tune"/> 91 <Space 92 android:layout_width="3dp" 93 android:layout_height="match_parent" /> 94 <TextView 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:text="@string/radio_input_frequency"/> 98 <EditText 99 android:id="@+id/input_am_fm_frequency" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:maxLength="5" 103 android:inputType="numberDecimal" 104 android:hint="@string/empty" 105 android:autofillHints="@string/empty" 106 android:text="@string/empty"/> 107 <Space 108 android:layout_width="3dp" 109 android:layout_height="match_parent" /> 110 <RadioGroup 111 android:id="@+id/button_fm_am_selection" 112 android:checkedButton="@+id/button_radio_fm" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:orientation="horizontal" > 116 <RadioButton 117 android:id="@+id/button_radio_fm" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:text="@string/radio_fm" /> 121 <RadioButton 122 android:id="@+id/button_radio_am" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 android:text="@string/radio_am" /> 126 </RadioGroup> 127 <Space 128 android:layout_width="3dp" 129 android:layout_height="match_parent" /> 130 <Button 131 android:id="@+id/button_radio_tune" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:text="@string/radio_tune" /> 135 </LinearLayout> 136 <LinearLayout android:id="@+id/layout_step" 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="horizontal" 140 android:visibility="gone" > 141 <TextView 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:text="@string/radio_step"/> 145 <Space 146 android:layout_width="3dp" 147 android:layout_height="match_parent" /> 148 <Button 149 android:id="@+id/button_radio_step_down" 150 android:layout_width="wrap_content" 151 android:layout_height="wrap_content" 152 android:text="@string/radio_step_down" /> 153 <Space 154 android:layout_width="3dp" 155 android:layout_height="match_parent" /> 156 <Button 157 android:id="@+id/button_radio_step_up" 158 android:layout_width="wrap_content" 159 android:layout_height="wrap_content" 160 android:text="@string/radio_step_up" /> 161 </LinearLayout> 162 <LinearLayout android:layout_width="match_parent" 163 android:layout_height="wrap_content" 164 android:orientation="horizontal" > 165 <TextView 166 android:layout_width="wrap_content" 167 android:layout_height="wrap_content" 168 android:text="@string/radio_seek"/> 169 <Space 170 android:layout_width="3dp" 171 android:layout_height="match_parent" /> 172 <Button 173 android:id="@+id/button_radio_seek_down" 174 android:layout_width="wrap_content" 175 android:layout_height="wrap_content" 176 android:text="@string/radio_seek_down" /> 177 <Space 178 android:layout_width="3dp" 179 android:layout_height="match_parent" /> 180 <Button 181 android:id="@+id/button_radio_seek_up" 182 android:layout_width="wrap_content" 183 android:layout_height="wrap_content" 184 android:text="@string/radio_seek_up" /> 185 <Space 186 android:layout_width="3dp" 187 android:layout_height="match_parent" /> 188 <TextView 189 android:layout_width="wrap_content" 190 android:layout_height="wrap_content" 191 android:text="@string/radio_skip_subchannels"/> 192 <CheckBox android:layout_width="wrap_content" 193 android:layout_height="wrap_content" 194 android:id="@+id/selection_seek_skip_subchannels"/> 195 </LinearLayout> 196 <TextView 197 android:layout_width="wrap_content" 198 android:layout_height="wrap_content" 199 android:text="@string/radio_current_program_info"/> 200 <LinearLayout android:layout_width="match_parent" 201 android:layout_height="wrap_content" 202 android:orientation="horizontal" 203 android:weightSum="2" > 204 <TextView 205 android:id="@+id/radio_current_station_info" 206 android:layout_width="0dp" 207 android:layout_height="wrap_content" 208 android:text="@string/empty" 209 android:layout_weight="1" /> 210 <Space 211 android:layout_width="3dp" 212 android:layout_height="match_parent" /> 213 <TextView 214 android:id="@+id/radio_current_channel_info" 215 android:layout_width="0dp" 216 android:layout_height="wrap_content" 217 android:text="@string/empty" 218 android:layout_weight="1" /> 219 </LinearLayout> 220 <LinearLayout android:layout_width="match_parent" 221 android:layout_height="wrap_content" 222 android:orientation="horizontal" 223 android:weightSum="2" > 224 <TextView 225 android:id="@+id/radio_current_song_info" 226 android:layout_width="0dp" 227 android:layout_height="wrap_content" 228 android:text="@string/empty" 229 android:layout_weight="1" /> 230 <Space 231 android:layout_width="3dp" 232 android:layout_height="match_parent" /> 233 <TextView 234 android:id="@+id/radio_current_artist_info" 235 android:layout_width="0dp" 236 android:layout_height="wrap_content" 237 android:text="@string/empty" 238 android:layout_weight="1" /> 239 </LinearLayout> 240 </LinearLayout> 241 </ScrollView> 242 <LinearLayout android:layout_width="0dp" 243 android:layout_height="match_parent" 244 android:orientation="vertical" 245 android:layout_weight="1" > 246 <TextView 247 android:layout_width="wrap_content" 248 android:layout_height="wrap_content" 249 android:text="@string/radio_program_list"/> 250 <LinearLayout android:layout_width="match_parent" 251 android:layout_height="wrap_content" 252 android:orientation="horizontal" 253 android:weightSum="4" > 254 <TextView 255 android:layout_width="0dp" 256 android:layout_height="match_parent" 257 android:gravity="center" 258 android:text="@string/radio_program_station_title" 259 android:layout_weight="3"> 260 </TextView> 261 <TextView 262 android:layout_width="0dp" 263 android:layout_height="match_parent" 264 android:gravity="center" 265 android:text="@string/empty" 266 android:layout_weight="1"> 267 </TextView> 268 </LinearLayout> 269 <ListView 270 android:id="@+id/radio_program_list" 271 android:layout_width="match_parent" 272 android:layout_height="match_parent" > 273 </ListView> 274 </LinearLayout> 275</LinearLayout> 276