1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 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<!-- Buttons to send test broadcasts --> 18<ScrollView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:orientation="vertical"> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:orientation="horizontal"> 32 33 <TextView android:id="@+id/message_id_label" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:text="@string/message_id_label" /> 37 38 <EditText android:id="@+id/message_id" 39 android:layout_width="80dp" 40 android:layout_height="wrap_content" 41 android:inputType="number" /> 42 43 </LinearLayout> 44 45 <LinearLayout 46 android:layout_width="match_parent" 47 android:layout_height="match_parent" 48 android:orientation="horizontal"> 49 50 <TextView android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:text="@string/message_body_label" /> 53 54 <EditText android:id="@+id/message_body" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:maxLines="4" 58 android:hint="@string/message_body_hint" 59 android:inputType="textMultiLine" 60 android:scrollbars="vertical" /> 61 62 </LinearLayout> 63 64 <LinearLayout 65 android:layout_width="match_parent" 66 android:layout_height="match_parent" 67 android:orientation="horizontal"> 68 69 <TextView android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:text="@string/language_code_label" /> 72 73 <EditText android:id="@+id/language_code" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:maxLines="1" 77 android:hint="@string/language_code_hint" 78 android:inputType="text"/> 79 80 </LinearLayout> 81 82 <LinearLayout 83 android:layout_width="match_parent" 84 android:layout_height="match_parent" 85 android:orientation="horizontal"> 86 87 <TextView android:id="@+id/category_id_label" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:text="@string/category_id_label" /> 91 92 <EditText android:id="@+id/category_id" 93 android:layout_width="80dp" 94 android:layout_height="wrap_content" 95 android:inputType="number" /> 96 97 </LinearLayout> 98 99 <CheckBox android:id="@+id/button_delay_broadcast" 100 android:text="@string/button_delay_broadcast" 101 android:layout_marginLeft="20dp" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" /> 104 105 <CheckBox android:id="@+id/button_additional_lang_broadcast" 106 android:text="@string/button_additional_lang_broadcast" 107 android:layout_marginLeft="20dp" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" /> 110 111 <!-- ETWS Alerts --> 112 <Button android:id="@+id/button_etws_earthquake_type" 113 android:text="@string/button_etws_earthquake_type" 114 android:layout_marginLeft="20dp" 115 android:layout_marginTop="10dp" 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:focusableInTouchMode="true"> 119 <requestFocus></requestFocus> 120 </Button> 121 122 <Button android:id="@+id/button_etws_tsunami_type" 123 android:text="@string/button_etws_tsunami_type" 124 android:layout_marginLeft="20dp" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" /> 127 128 <Button android:id="@+id/button_etws_earthquake_tsunami_type" 129 android:text="@string/button_etws_earthquake_tsunami_type" 130 android:layout_marginLeft="20dp" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" /> 133 134 <Button android:id="@+id/button_etws_other_type" 135 android:text="@string/button_etws_other_type" 136 android:layout_marginLeft="20dp" 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content" /> 139 140 <Button android:id="@+id/button_etws_cancel_type" 141 android:text="@string/button_etws_cancel_type" 142 android:layout_marginLeft="20dp" 143 android:layout_width="wrap_content" 144 android:layout_height="wrap_content" /> 145 146 <Button android:id="@+id/button_etws_test_type" 147 android:text="@string/button_etws_test_type" 148 android:layout_marginLeft="20dp" 149 android:layout_width="wrap_content" 150 android:layout_height="wrap_content" /> 151 152 <!-- CDMA CMAS Alerts --> 153 <Button android:id="@+id/button_cmas_pres_alert" 154 android:text="@string/button_cmas_pres_alert" 155 android:layout_marginLeft="20dp" 156 android:layout_marginTop="10dp" 157 android:layout_width="wrap_content" 158 android:layout_height="wrap_content" /> 159 160 <Button android:id="@+id/button_cmas_extreme_alert" 161 android:text="@string/button_cmas_extreme_alert" 162 android:layout_marginLeft="20dp" 163 android:layout_width="wrap_content" 164 android:layout_height="wrap_content" /> 165 166 <Button android:id="@+id/button_cmas_severe_alert" 167 android:text="@string/button_cmas_severe_alert" 168 android:layout_marginLeft="20dp" 169 android:layout_width="wrap_content" 170 android:layout_height="wrap_content" /> 171 172 <Button android:id="@+id/button_cmas_amber_alert" 173 android:text="@string/button_cmas_amber_alert" 174 android:layout_marginLeft="20dp" 175 android:layout_width="wrap_content" 176 android:layout_height="wrap_content" /> 177 178 <Button android:id="@+id/button_cmas_monthly_test" 179 android:text="@string/button_cmas_monthly_test" 180 android:layout_marginLeft="20dp" 181 android:layout_width="wrap_content" 182 android:layout_height="wrap_content" /> 183 184 <Button android:id="@+id/button_gsm_cmas_alert" 185 android:text="@string/button_gsm_cmas_alert" 186 android:layout_marginLeft="20dp" 187 android:layout_marginTop="10dp" 188 android:layout_width="wrap_content" 189 android:layout_height="wrap_content" /> 190 191 <Button android:id="@+id/button_gsm_cmas_pres_alert" 192 android:text="@string/button_gsm_cmas_pres_alert" 193 android:layout_marginLeft="20dp" 194 android:layout_marginTop="10dp" 195 android:layout_width="wrap_content" 196 android:layout_height="wrap_content" /> 197 198 <Button android:id="@+id/button_gsm_cmas_extreme_alert" 199 android:text="@string/button_gsm_cmas_extreme_alert" 200 android:layout_marginLeft="20dp" 201 android:layout_width="wrap_content" 202 android:layout_height="wrap_content" /> 203 204 <Button android:id="@+id/button_gsm_cmas_severe_alert" 205 android:text="@string/button_gsm_cmas_severe_alert" 206 android:layout_marginLeft="20dp" 207 android:layout_width="wrap_content" 208 android:layout_height="wrap_content" /> 209 210 <Button android:id="@+id/button_gsm_cmas_amber_alert" 211 android:text="@string/button_gsm_cmas_amber_alert" 212 android:layout_marginLeft="20dp" 213 android:layout_width="wrap_content" 214 android:layout_height="wrap_content" /> 215 216 <Button android:id="@+id/button_gsm_cmas_monthly_test" 217 android:text="@string/button_gsm_cmas_monthly_test" 218 android:layout_marginLeft="20dp" 219 android:layout_width="wrap_content" 220 android:layout_height="wrap_content" /> 221 222 <Button android:id="@+id/button_gsm_cmas_exercise_test" 223 android:text="@string/button_gsm_cmas_exercise_test" 224 android:layout_marginLeft="20dp" 225 android:layout_width="wrap_content" 226 android:layout_height="wrap_content" /> 227 228 <Button android:id="@+id/button_gsm_public_safety_message" 229 android:text="@string/button_gsm_public_safety_message" 230 android:layout_marginLeft="20dp" 231 android:layout_width="wrap_content" 232 android:layout_height="wrap_content" /> 233 234 <Button android:id="@+id/button_gsm_state_local_test_alert" 235 android:text="@string/button_gsm_state_local_test_alert" 236 android:layout_marginLeft="20dp" 237 android:layout_width="wrap_content" 238 android:layout_height="wrap_content" /> 239 240 <!-- Other Alerts --> 241 <Button android:id="@+id/button_gsm_7bit_type" 242 android:text="@string/button_gsm_7bit_type" 243 android:layout_marginLeft="20dp" 244 android:layout_marginTop="10dp" 245 android:layout_width="wrap_content" 246 android:layout_height="wrap_content" /> 247 248 <Button android:id="@+id/button_gsm_7bit_umts_type" 249 android:text="@string/button_gsm_7bit_umts_type" 250 android:layout_marginLeft="20dp" 251 android:layout_width="wrap_content" 252 android:layout_height="wrap_content" /> 253 254 <Button android:id="@+id/button_gsm_7bit_nopadding_type" 255 android:text="@string/button_gsm_7bit_nopadding_type" 256 android:layout_marginLeft="20dp" 257 android:layout_width="wrap_content" 258 android:layout_height="wrap_content" /> 259 260 <Button android:id="@+id/button_gsm_7bit_nopadding_umts_type" 261 android:text="@string/button_gsm_7bit_nopadding_umts_type" 262 android:layout_marginLeft="20dp" 263 android:layout_width="wrap_content" 264 android:layout_height="wrap_content" /> 265 266 <Button android:id="@+id/button_gsm_7bit_multipage_type" 267 android:text="@string/button_gsm_7bit_multipage_type" 268 android:layout_marginLeft="20dp" 269 android:layout_width="wrap_content" 270 android:layout_height="wrap_content" /> 271 272 <Button android:id="@+id/button_gsm_7bit_multipage_umts_type" 273 android:text="@string/button_gsm_7bit_multipage_umts_type" 274 android:layout_marginLeft="20dp" 275 android:layout_width="wrap_content" 276 android:layout_height="wrap_content" /> 277 278 <Button android:id="@+id/button_gsm_7bit_with_language_type" 279 android:text="@string/button_gsm_7bit_with_language_type" 280 android:layout_marginLeft="20dp" 281 android:layout_width="wrap_content" 282 android:layout_height="wrap_content" /> 283 284 <Button android:id="@+id/button_gsm_7bit_with_language_body_gsm_type" 285 android:text="@string/button_gsm_7bit_with_language_body_gsm_type" 286 android:layout_marginLeft="20dp" 287 android:layout_width="wrap_content" 288 android:layout_height="wrap_content" /> 289 290 <Button android:id="@+id/button_gsm_7bit_with_language_body_umts_type" 291 android:text="@string/button_gsm_7bit_with_language_body_umts_type" 292 android:layout_marginLeft="20dp" 293 android:layout_width="wrap_content" 294 android:layout_height="wrap_content" /> 295 296 <Button android:id="@+id/button_gsm_ucs2_type" 297 android:text="@string/button_gsm_ucs2_type" 298 android:layout_marginLeft="20dp" 299 android:layout_width="wrap_content" 300 android:layout_height="wrap_content" /> 301 302 <Button android:id="@+id/button_gsm_ucs2_umts_type" 303 android:text="@string/button_gsm_ucs2_umts_type" 304 android:layout_marginLeft="20dp" 305 android:layout_width="wrap_content" 306 android:layout_height="wrap_content" /> 307 308 <Button android:id="@+id/button_gsm_ucs2_multipage_umts_type" 309 android:text="@string/button_gsm_ucs2_multipage_umts_type" 310 android:layout_marginLeft="20dp" 311 android:layout_width="wrap_content" 312 android:layout_height="wrap_content" /> 313 314 <Button android:id="@+id/button_gsm_ucs2_with_language_type" 315 android:text="@string/button_gsm_ucs2_with_language_type" 316 android:layout_marginLeft="20dp" 317 android:layout_width="wrap_content" 318 android:layout_height="wrap_content" /> 319 320 <Button android:id="@+id/button_gsm_ucs2_with_language_umts_type" 321 android:text="@string/button_gsm_ucs2_with_language_umts_type" 322 android:layout_marginLeft="20dp" 323 android:layout_width="wrap_content" 324 android:layout_height="wrap_content" /> 325 326 </LinearLayout> 327 328</ScrollView> 329