1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2010 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="wrap_content" 19 android:layout_height="wrap_content" 20 android:fadeScrollbars="false" 21 android:scrollIndicators="top|bottom"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="vertical" 27 android:paddingBottom="8dip"> 28 29 <LinearLayout android:id="@+id/info" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 style="@style/wifi_section" /> 33 34 <LinearLayout android:id="@+id/type" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 style="@style/wifi_section" 38 android:visibility="gone"> 39 40 <LinearLayout 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 style="@style/wifi_item" > 44 <TextView 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 style="@style/wifi_item_label" 48 android:text="@string/wifi_ssid" 49 android:textDirection="locale" /> 50 51 <EditText android:id="@+id/ssid" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 style="@style/wifi_item_edit_content" 55 android:hint="@string/wifi_ssid_hint" 56 android:maxLength="32" 57 android:singleLine="true" 58 android:inputType="textNoSuggestions" /> 59 </LinearLayout> 60 61 <LinearLayout 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 style="@style/wifi_item" > 65 <TextView 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:minEms="16" 69 style="@style/wifi_item_label" 70 android:text="@string/wifi_security" /> 71 72 <Spinner android:id="@+id/security" 73 android:layout_width="match_parent" 74 android:layout_height="wrap_content" 75 style="@style/wifi_item_spinner" 76 android:prompt="@string/wifi_security" 77 android:entries="@array/wifi_security" /> 78 </LinearLayout> 79 </LinearLayout> 80 81 <LinearLayout android:id="@+id/security_fields" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 style="@style/wifi_section" 85 android:visibility="gone"> 86 87 <LinearLayout android:id="@+id/eap" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 style="@style/wifi_section" 91 android:visibility="gone"> 92 93 <LinearLayout android:id="@+id/l_method" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:visibility="gone" 97 style="@style/wifi_item" > 98 <TextView 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 style="@style/wifi_item_label" 102 android:text="@string/wifi_eap_method" /> 103 104 <Spinner android:id="@+id/method" 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 style="@style/wifi_item_spinner" 108 android:prompt="@string/wifi_eap_method" 109 android:entries="@array/wifi_eap_method" /> 110 </LinearLayout> 111 112 <LinearLayout android:id="@+id/l_phase2" 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:visibility="gone" 116 style="@style/wifi_item" > 117 <TextView 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 style="@style/wifi_item_label" 121 android:text="@string/please_select_phase2" /> 122 123 <Spinner android:id="@+id/phase2" 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 style="@style/wifi_item_spinner" 127 android:prompt="@string/please_select_phase2" 128 android:entries="@array/wifi_phase2_entries" /> 129 </LinearLayout> 130 131 <LinearLayout android:id="@+id/l_ca_cert" 132 android:layout_width="match_parent" 133 android:layout_height="wrap_content" 134 android:visibility="gone" 135 style="@style/wifi_item" > 136 <TextView 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content" 139 style="@style/wifi_item_label" 140 android:text="@string/wifi_eap_ca_cert" /> 141 142 <Spinner android:id="@+id/ca_cert" 143 android:layout_width="match_parent" 144 android:layout_height="wrap_content" 145 style="@style/wifi_item_spinner" 146 android:prompt="@string/wifi_eap_ca_cert" /> 147 </LinearLayout> 148 149 <LinearLayout android:id="@+id/no_ca_cert_warning" 150 android:layout_width="match_parent" 151 android:layout_height="wrap_content" 152 android:visibility="gone" 153 style="@style/wifi_item" > 154 <TextView 155 android:layout_width="wrap_content" 156 android:layout_height="wrap_content" 157 style="@style/wifi_item_warning" 158 android:text="@string/wifi_do_not_validate_eap_server_warning" /> 159 </LinearLayout> 160 161 <LinearLayout android:id="@+id/l_domain" 162 android:layout_width="match_parent" 163 android:layout_height="wrap_content" 164 style="@style/wifi_item" > 165 <TextView 166 android:layout_width="wrap_content" 167 android:layout_height="wrap_content" 168 style="@style/wifi_item_label" 169 android:text="@string/wifi_eap_domain" /> 170 171 <EditText android:id="@+id/domain" 172 android:layout_width="match_parent" 173 android:layout_height="wrap_content" 174 style="@style/wifi_item_edit_content" 175 android:singleLine="true" 176 android:inputType="textNoSuggestions" /> 177 </LinearLayout> 178 179 <LinearLayout android:id="@+id/no_domain_warning" 180 android:layout_width="match_parent" 181 android:layout_height="wrap_content" 182 android:visibility="gone" 183 style="@style/wifi_item" > 184 <TextView 185 android:layout_width="wrap_content" 186 android:layout_height="wrap_content" 187 style="@style/wifi_item_warning" 188 android:text="@string/wifi_no_domain_warning" /> 189 </LinearLayout> 190 191 <LinearLayout android:id="@+id/l_user_cert" 192 android:layout_width="match_parent" 193 android:layout_height="wrap_content" 194 android:visibility="gone" 195 style="@style/wifi_item" > 196 <TextView 197 android:layout_width="wrap_content" 198 android:layout_height="wrap_content" 199 style="@style/wifi_item_label" 200 android:text="@string/wifi_eap_user_cert" /> 201 202 <Spinner android:id="@+id/user_cert" 203 android:layout_width="match_parent" 204 android:layout_height="wrap_content" 205 style="@style/wifi_item_spinner" 206 android:prompt="@string/wifi_eap_user_cert" /> 207 </LinearLayout> 208 209 <LinearLayout android:id="@+id/l_identity" 210 android:layout_width="match_parent" 211 android:layout_height="wrap_content" 212 android:visibility="gone" 213 style="@style/wifi_item" > 214 <TextView 215 android:layout_width="wrap_content" 216 android:layout_height="wrap_content" 217 style="@style/wifi_item_label" 218 android:text="@string/wifi_eap_identity" /> 219 220 <EditText android:id="@+id/identity" 221 android:layout_width="match_parent" 222 android:layout_height="wrap_content" 223 style="@style/wifi_item_edit_content" 224 android:singleLine="true" 225 android:inputType="textNoSuggestions" /> 226 </LinearLayout> 227 228 <LinearLayout android:id="@+id/l_anonymous" 229 android:layout_width="match_parent" 230 android:layout_height="wrap_content" 231 android:visibility="gone" 232 style="@style/wifi_item" > 233 <TextView 234 android:layout_width="wrap_content" 235 android:layout_height="wrap_content" 236 style="@style/wifi_item_label" 237 android:text="@string/wifi_eap_anonymous" /> 238 239 <EditText android:id="@+id/anonymous" 240 android:layout_width="match_parent" 241 android:layout_height="wrap_content" 242 style="@style/wifi_item_edit_content" 243 android:singleLine="true" 244 android:inputType="textNoSuggestions" /> 245 </LinearLayout> 246 </LinearLayout> 247 248 <LinearLayout android:id="@+id/password_layout" 249 android:layout_width="match_parent" 250 android:layout_height="wrap_content" 251 style="@style/wifi_item" > 252 <TextView 253 android:layout_width="wrap_content" 254 android:layout_height="wrap_content" 255 style="@style/wifi_item_label" 256 android:text="@string/wifi_password" /> 257 258 <EditText android:id="@+id/password" 259 android:layout_width="match_parent" 260 android:layout_height="wrap_content" 261 style="@style/wifi_item_edit_content" 262 android:singleLine="true" 263 android:password="true" /> 264 </LinearLayout> 265 266 <LinearLayout android:id="@+id/show_password_layout" 267 android:layout_width="match_parent" 268 android:layout_height="wrap_content" 269 style="@style/wifi_item" > 270 <!-- Dummy to enable right-justification of checkbox --> 271 <TextView 272 android:layout_width="wrap_content" 273 android:layout_height="wrap_content" 274 style="@style/wifi_item_label" /> 275 276 <CheckBox android:id="@+id/show_password" 277 android:layout_width="match_parent" 278 android:layout_height="wrap_content" 279 style="@style/wifi_item_content" 280 android:textSize="14sp" 281 android:text="@string/wifi_show_password" /> 282 </LinearLayout> 283 </LinearLayout> 284 285 <LinearLayout android:id="@+id/wifi_advanced_toggle" 286 android:layout_width="match_parent" 287 android:layout_height="wrap_content" 288 style="@style/wifi_item" 289 android:paddingBottom="4dp" 290 android:importantForAccessibility="yes" 291 android:contentDescription="@string/wifi_advanced_toggle_description_collapsed" 292 android:visibility="gone"> 293 <CheckBox android:id="@+id/wifi_advanced_togglebox" 294 android:layout_width="match_parent" 295 android:layout_height="wrap_content" 296 style="@style/wifi_advanced_toggle" 297 android:importantForAccessibility="noHideDescendants" 298 android:text="@string/wifi_show_advanced" /> 299 </LinearLayout> 300 301 <LinearLayout android:id="@+id/wifi_advanced_fields" 302 android:layout_width="match_parent" 303 android:layout_height="wrap_content" 304 android:orientation="vertical" 305 android:visibility="gone"> 306 307 <LinearLayout android:id="@+id/proxy_settings_fields" 308 android:layout_width="match_parent" 309 android:layout_height="wrap_content" 310 style="@style/wifi_item" 311 android:visibility="gone"> 312 313 <TextView android:id="@+id/proxy_settings_title" 314 android:layout_width="wrap_content" 315 android:layout_height="wrap_content" 316 style="@style/wifi_item_label" 317 android:text="@string/proxy_settings_title" /> 318 319 <Spinner android:id="@+id/proxy_settings" 320 android:layout_width="match_parent" 321 android:layout_height="wrap_content" 322 style="@style/wifi_item_spinner" 323 android:prompt="@string/proxy_settings_title" 324 android:entries="@array/wifi_proxy_settings" /> 325 326 </LinearLayout> 327 328 <LinearLayout android:id="@+id/proxy_warning_limited_support" 329 android:layout_width="match_parent" 330 android:layout_height="wrap_content" 331 style="@style/wifi_item" 332 android:visibility="gone"> 333 <!-- Dummy to enable right-justification of warning --> 334 <TextView 335 android:layout_width="wrap_content" 336 android:layout_height="wrap_content" 337 style="@style/wifi_item_label" /> 338 339 <TextView 340 android:layout_width="match_parent" 341 android:layout_height="wrap_content" 342 style="@style/wifi_item_content" 343 android:text="@string/proxy_warning_limited_support" /> 344 </LinearLayout> 345 346 <LinearLayout android:id="@+id/proxy_pac_field" 347 android:layout_width="match_parent" 348 android:layout_height="wrap_content" 349 style="@style/wifi_section" 350 android:visibility="gone"> 351 <LinearLayout 352 android:layout_width="match_parent" 353 android:layout_height="wrap_content" 354 style="@style/wifi_item"> 355 <TextView 356 android:layout_width="wrap_content" 357 android:layout_height="wrap_content" 358 style="@style/wifi_item_label" 359 android:text="@string/proxy_url_title" /> 360 361 <EditText android:id="@+id/proxy_pac" 362 android:layout_width="match_parent" 363 android:layout_height="wrap_content" 364 style="@style/wifi_item_content" 365 android:hint="@string/proxy_url_hint" 366 android:inputType="textNoSuggestions" 367 android:singleLine="true"/> 368 </LinearLayout> 369 </LinearLayout> 370 <LinearLayout android:id="@+id/proxy_fields" 371 android:layout_width="match_parent" 372 android:layout_height="wrap_content" 373 style="@style/wifi_section" 374 android:visibility="gone"> 375 376 <LinearLayout 377 android:layout_width="match_parent" 378 android:layout_height="wrap_content" 379 style="@style/wifi_item"> 380 <TextView 381 android:layout_width="wrap_content" 382 android:layout_height="wrap_content" 383 style="@style/wifi_item_label" 384 android:text="@string/proxy_hostname_label" /> 385 386 <EditText android:id="@+id/proxy_hostname" 387 android:layout_width="match_parent" 388 android:layout_height="wrap_content" 389 style="@style/wifi_item_edit_content" 390 android:hint="@string/proxy_hostname_hint" 391 android:inputType="textNoSuggestions" 392 android:singleLine="true" /> 393 </LinearLayout> 394 <LinearLayout 395 android:layout_width="match_parent" 396 android:layout_height="wrap_content" 397 style="@style/wifi_item"> 398 <TextView 399 android:layout_width="wrap_content" 400 android:layout_height="wrap_content" 401 style="@style/wifi_item_label" 402 android:text="@string/proxy_port_label" /> 403 404 <EditText android:id="@+id/proxy_port" 405 android:layout_width="match_parent" 406 android:layout_height="wrap_content" 407 style="@style/wifi_item_edit_content" 408 android:hint="@string/proxy_port_hint" 409 android:inputType="number" 410 android:singleLine="true" /> 411 </LinearLayout> 412 <LinearLayout 413 android:layout_width="match_parent" 414 android:layout_height="wrap_content" 415 style="@style/wifi_item"> 416 <TextView 417 android:layout_width="wrap_content" 418 android:layout_height="wrap_content" 419 style="@style/wifi_item_label" 420 android:text="@string/proxy_exclusionlist_label" /> 421 422 <EditText android:id="@+id/proxy_exclusionlist" 423 android:layout_width="match_parent" 424 android:layout_height="wrap_content" 425 style="@style/wifi_item_edit_content" 426 android:hint="@string/proxy_exclusionlist_hint" 427 android:inputType="textNoSuggestions" 428 android:singleLine="true" /> 429 </LinearLayout> 430 </LinearLayout> 431 432 <LinearLayout android:id="@+id/ip_fields" 433 android:layout_width="match_parent" 434 android:layout_height="wrap_content" 435 style="@style/wifi_item" 436 android:visibility="gone"> 437 438 <TextView 439 android:layout_width="wrap_content" 440 android:layout_height="wrap_content" 441 style="@style/wifi_item_label" 442 android:text="@string/wifi_ip_settings" /> 443 444 <Spinner android:id="@+id/ip_settings" 445 android:layout_width="match_parent" 446 android:layout_height="wrap_content" 447 style="@style/wifi_item_spinner" 448 android:prompt="@string/wifi_ip_settings" 449 android:entries="@array/wifi_ip_settings" /> 450 451 </LinearLayout> 452 453 <LinearLayout android:id="@+id/staticip" 454 android:layout_width="match_parent" 455 android:layout_height="wrap_content" 456 style="@style/wifi_section" 457 android:visibility="gone"> 458 <LinearLayout 459 android:layout_width="match_parent" 460 android:layout_height="wrap_content" 461 style="@style/wifi_item" > 462 <TextView 463 android:layout_width="wrap_content" 464 android:layout_height="wrap_content" 465 style="@style/wifi_item_label" 466 android:text="@string/wifi_ip_address" /> 467 468 <EditText android:id="@+id/ipaddress" 469 android:layout_width="match_parent" 470 android:layout_height="wrap_content" 471 style="@style/wifi_item_edit_content" 472 android:singleLine="true" 473 android:hint="@string/wifi_ip_address_hint" 474 android:inputType="textNoSuggestions" /> 475 </LinearLayout> 476 477 <LinearLayout 478 android:layout_width="match_parent" 479 android:layout_height="wrap_content" 480 style="@style/wifi_item" > 481 <TextView 482 android:layout_width="wrap_content" 483 android:layout_height="wrap_content" 484 style="@style/wifi_item_label" 485 android:text="@string/wifi_gateway" /> 486 487 <EditText android:id="@+id/gateway" 488 android:layout_width="match_parent" 489 android:layout_height="wrap_content" 490 style="@style/wifi_item_edit_content" 491 android:singleLine="true" 492 android:hint="@string/wifi_gateway_hint" 493 android:inputType="textNoSuggestions" /> 494 </LinearLayout> 495 496 <LinearLayout 497 android:layout_width="match_parent" 498 android:layout_height="wrap_content" 499 style="@style/wifi_item" > 500 <TextView 501 android:layout_width="wrap_content" 502 android:layout_height="wrap_content" 503 style="@style/wifi_item_label" 504 android:text="@string/wifi_network_prefix_length" /> 505 506 <EditText android:id="@+id/network_prefix_length" 507 android:layout_width="match_parent" 508 android:layout_height="wrap_content" 509 style="@style/wifi_item_edit_content" 510 android:singleLine="true" 511 android:hint="@string/wifi_network_prefix_length_hint" 512 android:inputType="number" /> 513 </LinearLayout> 514 <LinearLayout 515 android:layout_width="match_parent" 516 android:layout_height="wrap_content" 517 style="@style/wifi_item" > 518 <TextView 519 android:layout_width="wrap_content" 520 android:layout_height="wrap_content" 521 style="@style/wifi_item_label" 522 android:text="@string/wifi_dns1" /> 523 524 <EditText android:id="@+id/dns1" 525 android:layout_width="match_parent" 526 android:layout_height="wrap_content" 527 style="@style/wifi_item_edit_content" 528 android:singleLine="true" 529 android:hint="@string/wifi_dns1_hint" 530 android:inputType="textNoSuggestions" /> 531 </LinearLayout> 532 533 <LinearLayout 534 android:layout_width="match_parent" 535 android:layout_height="wrap_content" 536 style="@style/wifi_item" > 537 <TextView 538 android:layout_width="wrap_content" 539 android:layout_height="wrap_content" 540 style="@style/wifi_item_label" 541 android:text="@string/wifi_dns2" /> 542 543 <EditText android:id="@+id/dns2" 544 android:layout_width="match_parent" 545 android:layout_height="wrap_content" 546 style="@style/wifi_item_edit_content" 547 android:singleLine="true" 548 android:hint="@string/wifi_dns2_hint" 549 android:inputType="textNoSuggestions" /> 550 </LinearLayout> 551 </LinearLayout> 552 553 <LinearLayout 554 android:layout_width="match_parent" 555 android:layout_height="wrap_content" 556 style="@style/wifi_section"> 557 <LinearLayout 558 android:layout_width="match_parent" 559 android:layout_height="wrap_content" 560 style="@style/wifi_item" > 561 <CheckBox android:id="@+id/shared" 562 android:layout_width="match_parent" 563 android:layout_height="wrap_content" 564 style="@style/wifi_item_content" 565 android:textSize="14sp" 566 android:text="@string/wifi_shared" 567 android:checked="true" /> 568 </LinearLayout> 569 </LinearLayout> 570 </LinearLayout> 571 </LinearLayout> 572 </ScrollView> 573