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">
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:orientation="vertical"
26 android:paddingBottom="8dip">
28 <LinearLayout android:id="@+id/info"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 style="@style/wifi_section" />
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">
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 style="@style/wifi_item" >
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" />
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" />
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 style="@style/wifi_item" >
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 style="@style/wifi_item_label"
68 android:text="@string/wifi_security" />
70 <Spinner android:id="@+id/security"
71 android:layout_width="match_parent"
72 android:layout_height="wrap_content"
73 style="@style/wifi_item_content"
74 android:prompt="@string/wifi_security"
75 android:entries="@array/wifi_security" />
79 <LinearLayout android:id="@+id/security_fields"
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
82 style="@style/wifi_section"
83 android:visibility="gone">
85 <LinearLayout android:id="@+id/eap"
86 android:layout_width="match_parent"
87 android:layout_height="wrap_content"
88 style="@style/wifi_section"
89 android:visibility="gone">
91 <LinearLayout android:id="@+id/l_method"
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
94 android:visibility="gone"
95 style="@style/wifi_item" >
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 style="@style/wifi_item_label"
100 android:text="@string/wifi_eap_method" />
102 <Spinner android:id="@+id/method"
103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 style="@style/wifi_item_content"
106 android:prompt="@string/wifi_eap_method"
107 android:entries="@array/wifi_eap_method" />
110 <LinearLayout android:id="@+id/l_phase2"
111 android:layout_width="match_parent"
112 android:layout_height="wrap_content"
113 android:visibility="gone"
114 style="@style/wifi_item" >
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 style="@style/wifi_item_label"
119 android:text="@string/please_select_phase2" />
121 <Spinner android:id="@+id/phase2"
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
124 style="@style/wifi_item_content"
125 android:prompt="@string/please_select_phase2"
126 android:entries="@array/wifi_phase2_entries" />
129 <LinearLayout android:id="@+id/l_ca_cert"
130 android:layout_width="match_parent"
131 android:layout_height="wrap_content"
132 android:visibility="gone"
133 style="@style/wifi_item" >
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 style="@style/wifi_item_label"
138 android:text="@string/wifi_eap_ca_cert" />
140 <Spinner android:id="@+id/ca_cert"
141 android:layout_width="match_parent"
142 android:layout_height="wrap_content"
143 style="@style/wifi_item_content"
144 android:prompt="@string/wifi_eap_ca_cert" />
147 <LinearLayout android:id="@+id/l_user_cert"
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:visibility="gone"
151 style="@style/wifi_item" >
153 android:layout_width="wrap_content"
154 android:layout_height="wrap_content"
155 style="@style/wifi_item_label"
156 android:text="@string/wifi_eap_user_cert" />
158 <Spinner android:id="@+id/user_cert"
159 android:layout_width="match_parent"
160 android:layout_height="wrap_content"
161 style="@style/wifi_item_content"
162 android:prompt="@string/wifi_eap_user_cert" />
165 <LinearLayout android:id="@+id/l_identity"
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content"
168 android:visibility="gone"
169 style="@style/wifi_item" >
171 android:layout_width="wrap_content"
172 android:layout_height="wrap_content"
173 style="@style/wifi_item_label"
174 android:text="@string/wifi_eap_identity" />
176 <EditText android:id="@+id/identity"
177 android:layout_width="match_parent"
178 android:layout_height="wrap_content"
179 style="@style/wifi_item_edit_content"
180 android:singleLine="true"
181 android:inputType="textNoSuggestions" />
184 <LinearLayout android:id="@+id/l_anonymous"
185 android:layout_width="match_parent"
186 android:layout_height="wrap_content"
187 android:visibility="gone"
188 style="@style/wifi_item" >
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 style="@style/wifi_item_label"
193 android:text="@string/wifi_eap_anonymous" />
195 <EditText android:id="@+id/anonymous"
196 android:layout_width="match_parent"
197 android:layout_height="wrap_content"
198 style="@style/wifi_item_edit_content"
199 android:singleLine="true"
200 android:inputType="textNoSuggestions" />
204 <LinearLayout android:id="@+id/password_layout"
205 android:layout_width="match_parent"
206 android:layout_height="wrap_content"
207 style="@style/wifi_item" >
209 android:layout_width="wrap_content"
210 android:layout_height="wrap_content"
211 style="@style/wifi_item_label"
212 android:text="@string/wifi_password" />
214 <EditText android:id="@+id/password"
215 android:layout_width="match_parent"
216 android:layout_height="wrap_content"
217 style="@style/wifi_item_edit_content"
218 android:singleLine="true"
219 android:password="true" />
222 <LinearLayout android:id="@+id/show_password_layout"
223 android:layout_width="match_parent"
224 android:layout_height="wrap_content"
225 style="@style/wifi_item" >
226 <!-- Dummy to enable right-justification of checkbox -->
228 android:layout_width="wrap_content"
229 android:layout_height="wrap_content"
230 style="@style/wifi_item_label" />
232 <CheckBox android:id="@+id/show_password"
233 android:layout_width="match_parent"
234 android:layout_height="wrap_content"
235 style="@style/wifi_item_content"
236 android:textSize="14sp"
237 android:text="@string/wifi_show_password" />
241 <LinearLayout android:id="@+id/wifi_advanced_toggle"
242 android:layout_width="match_parent"
243 android:layout_height="wrap_content"
244 style="@style/wifi_item"
245 android:visibility="gone">
246 <CheckBox android:id="@+id/wifi_advanced_togglebox"
247 android:layout_width="match_parent"
248 android:layout_height="wrap_content"
249 style="@style/wifi_item_content"
250 android:textSize="14sp"
251 android:text="@string/wifi_show_advanced" />
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">
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">
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" />
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" />
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 -->
288 android:layout_width="wrap_content"
289 android:layout_height="wrap_content"
290 style="@style/wifi_item_label" />
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" />
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">
305 android:layout_width="match_parent"
306 android:layout_height="wrap_content"
307 style="@style/wifi_item">
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" />
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"/>
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">
330 android:layout_width="match_parent"
331 android:layout_height="wrap_content"
332 style="@style/wifi_item">
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" />
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" />
348 android:layout_width="match_parent"
349 android:layout_height="wrap_content"
350 style="@style/wifi_item">
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" />
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" />
366 android:layout_width="match_parent"
367 android:layout_height="wrap_content"
368 style="@style/wifi_item">
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" />
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" />
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">
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" />
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" />
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">
412 android:layout_width="match_parent"
413 android:layout_height="wrap_content"
414 style="@style/wifi_item" >
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" />
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" />
431 android:layout_width="match_parent"
432 android:layout_height="wrap_content"
433 style="@style/wifi_item" >
435 android:layout_width="wrap_content"
436 android:layout_height="wrap_content"
437 style="@style/wifi_item_label"
438 android:text="@string/wifi_gateway" />
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" />
450 android:layout_width="match_parent"
451 android:layout_height="wrap_content"
452 style="@style/wifi_item" >
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" />
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" />
468 android:layout_width="match_parent"
469 android:layout_height="wrap_content"
470 style="@style/wifi_item" >
472 android:layout_width="wrap_content"
473 android:layout_height="wrap_content"
474 style="@style/wifi_item_label"
475 android:text="@string/wifi_dns1" />
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" />
487 android:layout_width="match_parent"
488 android:layout_height="wrap_content"
489 style="@style/wifi_item" >
491 android:layout_width="wrap_content"
492 android:layout_height="wrap_content"
493 style="@style/wifi_item_label"
494 android:text="@string/wifi_dns2" />
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" />