OSDN Git Service

Add a warning message to the ASM toggle.
[android-x86/packages-apps-Settings.git] / res / layout / wifi_dialog.xml
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:visibility="gone">
291             <CheckBox android:id="@+id/wifi_advanced_togglebox"
292                     android:layout_width="match_parent"
293                     android:layout_height="wrap_content"
294                     style="@style/wifi_advanced_toggle"
295                     android:text="@string/wifi_show_advanced" />
296         </LinearLayout>
297
298         <LinearLayout android:id="@+id/wifi_advanced_fields"
299                     android:layout_width="match_parent"
300                     android:layout_height="wrap_content"
301                     android:orientation="vertical"
302                     android:visibility="gone">
303
304             <LinearLayout android:id="@+id/proxy_settings_fields"
305                     android:layout_width="match_parent"
306                     android:layout_height="wrap_content"
307                     style="@style/wifi_item"
308                     android:visibility="gone">
309
310                 <TextView android:id="@+id/proxy_settings_title"
311                         android:layout_width="wrap_content"
312                         android:layout_height="wrap_content"
313                         style="@style/wifi_item_label"
314                         android:text="@string/proxy_settings_title" />
315
316                 <Spinner android:id="@+id/proxy_settings"
317                         android:layout_width="match_parent"
318                         android:layout_height="wrap_content"
319                         style="@style/wifi_item_spinner"
320                         android:prompt="@string/proxy_settings_title"
321                         android:entries="@array/wifi_proxy_settings" />
322
323             </LinearLayout>
324
325             <LinearLayout android:id="@+id/proxy_warning_limited_support"
326                     android:layout_width="match_parent"
327                     android:layout_height="wrap_content"
328                     style="@style/wifi_item"
329                     android:visibility="gone">
330                 <!--  Dummy to enable right-justification of warning -->
331                 <TextView
332                         android:layout_width="wrap_content"
333                         android:layout_height="wrap_content"
334                         style="@style/wifi_item_label" />
335
336                 <TextView
337                         android:layout_width="match_parent"
338                         android:layout_height="wrap_content"
339                         style="@style/wifi_item_content"
340                         android:text="@string/proxy_warning_limited_support" />
341             </LinearLayout>
342
343             <LinearLayout android:id="@+id/proxy_pac_field"
344                     android:layout_width="match_parent"
345                     android:layout_height="wrap_content"
346                     style="@style/wifi_section"
347                     android:visibility="gone">
348                 <LinearLayout
349                         android:layout_width="match_parent"
350                         android:layout_height="wrap_content"
351                         style="@style/wifi_item">
352                     <TextView
353                             android:layout_width="wrap_content"
354                             android:layout_height="wrap_content"
355                             style="@style/wifi_item_label"
356                             android:text="@string/proxy_url_title" />
357
358                     <EditText android:id="@+id/proxy_pac"
359                             android:layout_width="match_parent"
360                             android:layout_height="wrap_content"
361                             style="@style/wifi_item_content"
362                             android:hint="@string/proxy_url_hint"
363                             android:inputType="textNoSuggestions"
364                             android:singleLine="true"/>
365                 </LinearLayout>
366             </LinearLayout>
367             <LinearLayout android:id="@+id/proxy_fields"
368                     android:layout_width="match_parent"
369                     android:layout_height="wrap_content"
370                     style="@style/wifi_section"
371                     android:visibility="gone">
372
373                 <LinearLayout
374                         android:layout_width="match_parent"
375                         android:layout_height="wrap_content"
376                         style="@style/wifi_item">
377                     <TextView
378                             android:layout_width="wrap_content"
379                             android:layout_height="wrap_content"
380                             style="@style/wifi_item_label"
381                             android:text="@string/proxy_hostname_label" />
382
383                     <EditText android:id="@+id/proxy_hostname"
384                             android:layout_width="match_parent"
385                             android:layout_height="wrap_content"
386                             style="@style/wifi_item_edit_content"
387                             android:hint="@string/proxy_hostname_hint"
388                             android:inputType="textNoSuggestions"
389                             android:singleLine="true" />
390                 </LinearLayout>
391                 <LinearLayout
392                         android:layout_width="match_parent"
393                         android:layout_height="wrap_content"
394                         style="@style/wifi_item">
395                     <TextView
396                             android:layout_width="wrap_content"
397                             android:layout_height="wrap_content"
398                             style="@style/wifi_item_label"
399                             android:text="@string/proxy_port_label" />
400
401                     <EditText android:id="@+id/proxy_port"
402                             android:layout_width="match_parent"
403                             android:layout_height="wrap_content"
404                             style="@style/wifi_item_edit_content"
405                             android:hint="@string/proxy_port_hint"
406                             android:inputType="number"
407                             android:singleLine="true" />
408                 </LinearLayout>
409                 <LinearLayout
410                         android:layout_width="match_parent"
411                         android:layout_height="wrap_content"
412                         style="@style/wifi_item">
413                     <TextView
414                             android:layout_width="wrap_content"
415                             android:layout_height="wrap_content"
416                             style="@style/wifi_item_label"
417                             android:text="@string/proxy_exclusionlist_label" />
418
419                     <EditText android:id="@+id/proxy_exclusionlist"
420                             android:layout_width="match_parent"
421                             android:layout_height="wrap_content"
422                             style="@style/wifi_item_edit_content"
423                             android:hint="@string/proxy_exclusionlist_hint"
424                             android:inputType="textNoSuggestions"
425                             android:singleLine="true" />
426                 </LinearLayout>
427             </LinearLayout>
428
429             <LinearLayout android:id="@+id/ip_fields"
430                     android:layout_width="match_parent"
431                     android:layout_height="wrap_content"
432                     style="@style/wifi_item"
433                     android:visibility="gone">
434
435                 <TextView
436                         android:layout_width="wrap_content"
437                         android:layout_height="wrap_content"
438                         style="@style/wifi_item_label"
439                         android:text="@string/wifi_ip_settings" />
440
441                 <Spinner android:id="@+id/ip_settings"
442                         android:layout_width="match_parent"
443                         android:layout_height="wrap_content"
444                         style="@style/wifi_item_spinner"
445                         android:prompt="@string/wifi_ip_settings"
446                         android:entries="@array/wifi_ip_settings" />
447
448             </LinearLayout>
449
450             <LinearLayout android:id="@+id/staticip"
451                     android:layout_width="match_parent"
452                     android:layout_height="wrap_content"
453                     style="@style/wifi_section"
454                     android:visibility="gone">
455                 <LinearLayout
456                         android:layout_width="match_parent"
457                         android:layout_height="wrap_content"
458                         style="@style/wifi_item" >
459                     <TextView
460                             android:layout_width="wrap_content"
461                             android:layout_height="wrap_content"
462                             style="@style/wifi_item_label"
463                             android:text="@string/wifi_ip_address" />
464
465                     <EditText android:id="@+id/ipaddress"
466                             android:layout_width="match_parent"
467                             android:layout_height="wrap_content"
468                             style="@style/wifi_item_edit_content"
469                             android:singleLine="true"
470                             android:hint="@string/wifi_ip_address_hint"
471                             android:inputType="textNoSuggestions" />
472                 </LinearLayout>
473
474                 <LinearLayout
475                         android:layout_width="match_parent"
476                         android:layout_height="wrap_content"
477                         style="@style/wifi_item" >
478                     <TextView
479                             android:layout_width="wrap_content"
480                             android:layout_height="wrap_content"
481                             style="@style/wifi_item_label"
482                             android:text="@string/wifi_gateway" />
483
484                     <EditText android:id="@+id/gateway"
485                             android:layout_width="match_parent"
486                             android:layout_height="wrap_content"
487                             style="@style/wifi_item_edit_content"
488                             android:singleLine="true"
489                             android:hint="@string/wifi_gateway_hint"
490                             android:inputType="textNoSuggestions" />
491                 </LinearLayout>
492
493                 <LinearLayout
494                         android:layout_width="match_parent"
495                         android:layout_height="wrap_content"
496                         style="@style/wifi_item" >
497                     <TextView
498                             android:layout_width="wrap_content"
499                             android:layout_height="wrap_content"
500                             style="@style/wifi_item_label"
501                             android:text="@string/wifi_network_prefix_length" />
502
503                     <EditText android:id="@+id/network_prefix_length"
504                             android:layout_width="match_parent"
505                             android:layout_height="wrap_content"
506                             style="@style/wifi_item_edit_content"
507                             android:singleLine="true"
508                             android:hint="@string/wifi_network_prefix_length_hint"
509                             android:inputType="number" />
510                 </LinearLayout>
511                 <LinearLayout
512                         android:layout_width="match_parent"
513                         android:layout_height="wrap_content"
514                         style="@style/wifi_item" >
515                     <TextView
516                             android:layout_width="wrap_content"
517                             android:layout_height="wrap_content"
518                             style="@style/wifi_item_label"
519                             android:text="@string/wifi_dns1" />
520
521                     <EditText android:id="@+id/dns1"
522                             android:layout_width="match_parent"
523                             android:layout_height="wrap_content"
524                             style="@style/wifi_item_edit_content"
525                             android:singleLine="true"
526                             android:hint="@string/wifi_dns1_hint"
527                             android:inputType="textNoSuggestions" />
528                 </LinearLayout>
529
530                 <LinearLayout
531                         android:layout_width="match_parent"
532                         android:layout_height="wrap_content"
533                         style="@style/wifi_item" >
534                     <TextView
535                             android:layout_width="wrap_content"
536                             android:layout_height="wrap_content"
537                             style="@style/wifi_item_label"
538                             android:text="@string/wifi_dns2" />
539
540                     <EditText android:id="@+id/dns2"
541                             android:layout_width="match_parent"
542                             android:layout_height="wrap_content"
543                             style="@style/wifi_item_edit_content"
544                             android:singleLine="true"
545                             android:hint="@string/wifi_dns2_hint"
546                             android:inputType="textNoSuggestions" />
547                 </LinearLayout>
548             </LinearLayout>
549
550             <LinearLayout
551                     android:layout_width="match_parent"
552                     android:layout_height="wrap_content"
553                     style="@style/wifi_section">
554                 <LinearLayout
555                         android:layout_width="match_parent"
556                         android:layout_height="wrap_content"
557                         style="@style/wifi_item" >
558                     <CheckBox android:id="@+id/shared"
559                             android:layout_width="match_parent"
560                             android:layout_height="wrap_content"
561                             style="@style/wifi_item_content"
562                             android:textSize="14sp"
563                             android:text="@string/wifi_shared"
564                             android:checked="true" />
565                 </LinearLayout>
566             </LinearLayout>
567         </LinearLayout>
568     </LinearLayout>
569 </ScrollView>