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