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