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