1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
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">
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content"
26 android:orientation="vertical"
27 android:paddingBottom="8dip">
29 <LinearLayout android:id="@+id/info"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 style="@style/wifi_section" />
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">
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 style="@style/wifi_item" >
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" />
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" />
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
64 style="@style/wifi_item" >
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
69 style="@style/wifi_item_label"
70 android:text="@string/wifi_security" />
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" />
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">
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">
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" >
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" />
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" />
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" >
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" />
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" />
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" >
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" />
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" />
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" >
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" />
161 <LinearLayout android:id="@+id/l_domain"
162 android:layout_width="match_parent"
163 android:layout_height="wrap_content"
164 style="@style/wifi_item" >
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" />
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" />
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" >
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" />
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" >
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" />
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" />
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" >
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" />
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" />
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" >
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" />
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" />
248 <LinearLayout android:id="@+id/password_layout"
249 android:layout_width="match_parent"
250 android:layout_height="wrap_content"
251 style="@style/wifi_item" >
253 android:layout_width="wrap_content"
254 android:layout_height="wrap_content"
255 style="@style/wifi_item_label"
256 android:text="@string/wifi_password" />
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" />
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 -->
272 android:layout_width="wrap_content"
273 android:layout_height="wrap_content"
274 style="@style/wifi_item_label" />
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" />
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" />
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">
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">
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" />
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" />
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 -->
335 android:layout_width="wrap_content"
336 android:layout_height="wrap_content"
337 style="@style/wifi_item_label" />
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" />
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">
352 android:layout_width="match_parent"
353 android:layout_height="wrap_content"
354 style="@style/wifi_item">
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" />
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"/>
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">
377 android:layout_width="match_parent"
378 android:layout_height="wrap_content"
379 style="@style/wifi_item">
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" />
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" />
395 android:layout_width="match_parent"
396 android:layout_height="wrap_content"
397 style="@style/wifi_item">
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" />
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" />
413 android:layout_width="match_parent"
414 android:layout_height="wrap_content"
415 style="@style/wifi_item">
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" />
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" />
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">
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" />
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" />
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">
459 android:layout_width="match_parent"
460 android:layout_height="wrap_content"
461 style="@style/wifi_item" >
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" />
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" />
478 android:layout_width="match_parent"
479 android:layout_height="wrap_content"
480 style="@style/wifi_item" >
482 android:layout_width="wrap_content"
483 android:layout_height="wrap_content"
484 style="@style/wifi_item_label"
485 android:text="@string/wifi_gateway" />
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" />
497 android:layout_width="match_parent"
498 android:layout_height="wrap_content"
499 style="@style/wifi_item" >
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" />
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" />
515 android:layout_width="match_parent"
516 android:layout_height="wrap_content"
517 style="@style/wifi_item" >
519 android:layout_width="wrap_content"
520 android:layout_height="wrap_content"
521 style="@style/wifi_item_label"
522 android:text="@string/wifi_dns1" />
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" />
534 android:layout_width="match_parent"
535 android:layout_height="wrap_content"
536 style="@style/wifi_item" >
538 android:layout_width="wrap_content"
539 android:layout_height="wrap_content"
540 style="@style/wifi_item_label"
541 android:text="@string/wifi_dns2" />
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" />
554 android:layout_width="match_parent"
555 android:layout_height="wrap_content"
556 style="@style/wifi_section">
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" />