• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:theme="@style/Theme.Network"
21    android:id="@+id/l_wifidialog"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:orientation="vertical"
25    android:paddingBottom="8dip">
26
27    <LinearLayout android:id="@+id/wep_warning_layout"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:paddingBottom="20dp"
31        style="@style/wifi_item"
32        android:visibility="gone">
33        <TextView
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            style="@style/wifi_item_label"
37            android:text="@string/wifi_settings_warning_wep_network"/>
38    </LinearLayout>
39
40    <LinearLayout android:id="@+id/info"
41                  android:layout_width="match_parent"
42                  android:layout_height="wrap_content"
43                  style="@style/wifi_section"/>
44
45    <LinearLayout android:id="@+id/type"
46                  android:layout_width="match_parent"
47                  android:layout_height="wrap_content"
48                  style="@style/wifi_section"
49                  android:visibility="gone">
50
51        <LinearLayout
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            style="@style/wifi_item">
55            <LinearLayout
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:orientation="horizontal">
59                <com.google.android.material.textfield.TextInputLayout
60                    android:id="@+id/ssid_layout"
61                    style="@style/Widget.Network.TextInputLayout.WifiConfig"
62                    android:layout_weight="1"
63                    android:hint="@string/wifi_ssid"
64                    android:textDirection="locale"
65                    app:helperTextEnabled="true"
66                    app:helperText="@string/wifi_field_required"
67                    app:endIconMode="clear_text">
68                    <com.google.android.material.textfield.TextInputEditText
69                        android:id="@+id/ssid"
70                        style="@style/Widget.Network.TextInputLayout.WifiConfig.EditText"
71                        android:inputType="textNoSuggestions"
72                        android:singleLine="true"/>
73                </com.google.android.material.textfield.TextInputLayout>
74
75                <ImageButton
76                    android:id="@+id/ssid_scanner_button"
77                    android:layout_width="wrap_content"
78                    android:layout_height="wrap_content"
79                    android:layout_gravity="center"
80                    android:minWidth="@dimen/min_tap_target_size"
81                    android:minHeight="@dimen/min_tap_target_size"
82                    android:background="?android:attr/selectableItemBackground"
83                    android:src="@drawable/ic_scan_24dp"
84                    android:contentDescription="@string/wifi_dpp_scan_qr_code"/>
85            </LinearLayout>
86
87            <LinearLayout android:id="@+id/ssid_too_long_warning"
88                          android:layout_width="match_parent"
89                          android:layout_height="wrap_content"
90                          android:visibility="gone"
91                          style="@style/wifi_item">
92                <TextView
93                    android:layout_width="wrap_content"
94                    android:layout_height="wrap_content"
95                    style="@style/wifi_item_warning"
96                    android:text="@string/wifi_ssid_too_long"/>
97            </LinearLayout>
98
99        </LinearLayout>
100
101        <LinearLayout
102            android:layout_width="match_parent"
103            android:layout_height="wrap_content"
104            style="@style/wifi_item">
105            <TextView
106                android:layout_width="wrap_content"
107                android:layout_height="wrap_content"
108                android:minEms="16"
109                style="@style/wifi_item_label"
110                android:text="@string/wifi_security"/>
111
112            <!-- Entries are added dynamically to this spinner -->
113            <!-- See WifiConfigController.configureSecuritySpinner -->
114            <Spinner android:id="@+id/security"
115                     android:layout_width="match_parent"
116                     android:layout_height="wrap_content"
117                     style="@style/wifi_item_spinner"
118                     android:prompt="@string/wifi_security"/>
119        </LinearLayout>
120    </LinearLayout>
121
122    <LinearLayout android:id="@+id/security_fields"
123                  android:layout_width="match_parent"
124                  android:layout_height="wrap_content"
125                  style="@style/wifi_section"
126                  android:visibility="gone">
127
128        <LinearLayout android:id="@+id/eap"
129                      android:layout_width="match_parent"
130                      android:layout_height="wrap_content"
131                      style="@style/wifi_section"
132                      android:visibility="gone">
133
134            <LinearLayout android:id="@+id/l_method"
135                          android:layout_width="match_parent"
136                          android:layout_height="wrap_content"
137                          android:visibility="gone"
138                          style="@style/wifi_item">
139                <TextView
140                    android:layout_width="wrap_content"
141                    android:layout_height="wrap_content"
142                    style="@style/wifi_item_label"
143                    android:text="@string/wifi_eap_method"/>
144
145                <Spinner android:id="@+id/method"
146                         android:layout_width="match_parent"
147                         android:layout_height="wrap_content"
148                         style="@style/wifi_item_spinner"
149                         android:prompt="@string/wifi_eap_method"/>
150            </LinearLayout>
151
152            <LinearLayout android:id="@+id/l_sim"
153                          android:layout_width="match_parent"
154                          android:layout_height="wrap_content"
155                          android:visibility="gone"
156                          style="@style/wifi_item">
157                <TextView
158                    android:layout_width="wrap_content"
159                    android:layout_height="wrap_content"
160                    style="@style/wifi_item_label"
161                    android:text="@string/sim_card"/>
162
163                <Spinner android:id="@+id/sim"
164                         android:layout_width="match_parent"
165                         android:layout_height="wrap_content"
166                         style="@style/wifi_item_spinner"
167                         android:prompt="@string/sim_card"/>
168            </LinearLayout>
169
170            <LinearLayout android:id="@+id/l_phase2"
171                          android:layout_width="match_parent"
172                          android:layout_height="wrap_content"
173                          android:visibility="gone"
174                          style="@style/wifi_item">
175                <TextView
176                    android:layout_width="wrap_content"
177                    android:layout_height="wrap_content"
178                    style="@style/wifi_item_label"
179                    android:text="@string/please_select_phase2"/>
180
181                <Spinner android:id="@+id/phase2"
182                         android:layout_width="match_parent"
183                         android:layout_height="wrap_content"
184                         style="@style/wifi_item_spinner"
185                         android:prompt="@string/please_select_phase2"/>
186            </LinearLayout>
187
188            <LinearLayout android:id="@+id/l_ca_cert"
189                          android:layout_width="match_parent"
190                          android:layout_height="wrap_content"
191                          android:visibility="gone"
192                          style="@style/wifi_item">
193                <TextView
194                    android:layout_width="wrap_content"
195                    android:layout_height="wrap_content"
196                    style="@style/wifi_item_label"
197                    android:text="@string/wifi_eap_ca_cert"/>
198
199                <Spinner android:id="@+id/ca_cert"
200                         android:layout_width="match_parent"
201                         android:layout_height="wrap_content"
202                         style="@style/wifi_item_spinner"
203                         android:prompt="@string/wifi_eap_ca_cert"/>
204            </LinearLayout>
205
206            <LinearLayout android:id="@+id/l_min_tls_ver"
207                          android:layout_width="match_parent"
208                          android:layout_height="wrap_content"
209                          android:visibility="gone"
210                          style="@style/wifi_item">
211                <TextView
212                    android:layout_width="wrap_content"
213                    android:layout_height="wrap_content"
214                    style="@style/wifi_item_label"
215                    android:text="@string/wifi_eap_min_tls_ver"/>
216
217                <Spinner android:id="@+id/min_tls_ver"
218                         android:layout_width="match_parent"
219                         android:layout_height="wrap_content"
220                         style="@style/wifi_item_spinner"
221                         android:prompt="@string/wifi_eap_min_tls_ver"/>
222            </LinearLayout>
223
224            <LinearLayout android:id="@+id/l_ocsp"
225                          android:layout_width="match_parent"
226                          android:layout_height="wrap_content"
227                          android:visibility="gone"
228                          style="@style/wifi_item">
229                <TextView
230                    android:layout_width="wrap_content"
231                    android:layout_height="wrap_content"
232                    style="@style/wifi_item_label"
233                    android:text="@string/wifi_eap_ocsp"/>
234
235                <Spinner android:id="@+id/ocsp"
236                         android:layout_width="match_parent"
237                         android:layout_height="wrap_content"
238                         style="@style/wifi_item_spinner"
239                         android:prompt="@string/wifi_eap_ocsp"
240                         android:entries="@array/eap_ocsp_type"/>
241            </LinearLayout>
242
243            <LinearLayout android:id="@+id/l_domain"
244                          android:layout_width="match_parent"
245                          android:layout_height="wrap_content"
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_domain"/>
252
253                <EditText android:id="@+id/domain"
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
261            <LinearLayout android:id="@+id/no_domain_warning"
262                          android:layout_width="match_parent"
263                          android:layout_height="wrap_content"
264                          android:visibility="gone"
265                          style="@style/wifi_item">
266                <TextView
267                    android:layout_width="wrap_content"
268                    android:layout_height="wrap_content"
269                    style="@style/wifi_item_warning"
270                    android:text="@string/wifi_no_domain_warning"/>
271            </LinearLayout>
272
273            <LinearLayout android:id="@+id/l_user_cert"
274                          android:layout_width="match_parent"
275                          android:layout_height="wrap_content"
276                          android:visibility="gone"
277                          style="@style/wifi_item">
278                <TextView
279                    android:layout_width="wrap_content"
280                    android:layout_height="wrap_content"
281                    style="@style/wifi_item_label"
282                    android:text="@string/wifi_eap_user_cert"/>
283
284                <Spinner android:id="@+id/user_cert"
285                         android:layout_width="match_parent"
286                         android:layout_height="wrap_content"
287                         style="@style/wifi_item_spinner"
288                         android:prompt="@string/wifi_eap_user_cert"/>
289            </LinearLayout>
290
291            <LinearLayout android:id="@+id/no_user_cert_warning"
292                          android:layout_width="match_parent"
293                          android:layout_height="wrap_content"
294                          android:visibility="gone"
295                          style="@style/wifi_item">
296                <TextView
297                    android:layout_width="wrap_content"
298                    android:layout_height="wrap_content"
299                    style="@style/wifi_item_warning"
300                    android:text="@string/wifi_no_user_cert_warning"/>
301            </LinearLayout>
302
303            <LinearLayout android:id="@+id/l_identity"
304                          android:layout_width="match_parent"
305                          android:layout_height="wrap_content"
306                          android:visibility="gone"
307                          style="@style/wifi_item">
308                <TextView
309                    android:layout_width="wrap_content"
310                    android:layout_height="wrap_content"
311                    style="@style/wifi_item_label"
312                    android:text="@string/wifi_eap_identity"/>
313
314                <EditText android:id="@+id/identity"
315                          android:layout_width="match_parent"
316                          android:layout_height="wrap_content"
317                          style="@style/wifi_item_edit_content"
318                          android:singleLine="true"
319                          android:inputType="textNoSuggestions"/>
320            </LinearLayout>
321
322            <LinearLayout android:id="@+id/l_anonymous"
323                          android:layout_width="match_parent"
324                          android:layout_height="wrap_content"
325                          android:visibility="gone"
326                          style="@style/wifi_item">
327                <TextView
328                    android:layout_width="wrap_content"
329                    android:layout_height="wrap_content"
330                    style="@style/wifi_item_label"
331                    android:text="@string/wifi_eap_anonymous"/>
332
333                <EditText android:id="@+id/anonymous"
334                          android:layout_width="match_parent"
335                          android:layout_height="wrap_content"
336                          style="@style/wifi_item_edit_content"
337                          android:singleLine="true"
338                          android:inputType="textNoSuggestions"/>
339            </LinearLayout>
340        </LinearLayout>
341
342        <LinearLayout android:id="@+id/password_layout"
343                      android:layout_width="match_parent"
344                      android:layout_height="wrap_content"
345                      style="@style/wifi_item">
346            <com.google.android.material.textfield.TextInputLayout
347                android:id="@+id/password_input_layout"
348                style="@style/Widget.Network.TextInputLayout.WifiConfig"
349                android:hint="@string/wifi_password"
350                app:helperTextEnabled="true"
351                app:helperText="@string/wifi_field_required"
352                app:endIconMode="password_toggle">
353                <com.google.android.material.textfield.TextInputEditText
354                    android:id="@+id/password"
355                    style="@style/Widget.Network.TextInputLayout.WifiConfig.EditText"
356                    android:inputType="textPassword"
357                    android:singleLine="true"/>
358            </com.google.android.material.textfield.TextInputLayout>
359        </LinearLayout>
360
361        <LinearLayout android:id="@+id/show_password_layout"
362                      android:layout_width="match_parent"
363                      android:layout_height="wrap_content"
364                      style="@style/wifi_item">
365            <!--  Placeholder to enable right-justification of checkbox -->
366            <TextView
367                android:layout_width="wrap_content"
368                android:layout_height="wrap_content"
369                style="@style/wifi_item_label"
370                android:visibility="gone"/>
371
372            <CheckBox android:id="@+id/show_password"
373                      android:layout_width="match_parent"
374                      android:layout_height="wrap_content"
375                      style="@style/wifi_item_content"
376                      android:text="@string/wifi_show_password"
377                      android:visibility="gone"/>
378        </LinearLayout>
379    </LinearLayout>
380
381    <LinearLayout android:id="@+id/wifi_advanced_toggle"
382                  android:layout_width="match_parent"
383                  android:layout_height="wrap_content"
384                  style="@style/wifi_item"
385                  android:paddingTop="2dp"
386                  android:paddingBottom="4dp"
387                  android:importantForAccessibility="no"
388                  android:visibility="gone">
389        <CheckBox android:id="@+id/wifi_advanced_togglebox"
390                  android:layout_width="match_parent"
391                  android:layout_height="wrap_content"
392                  style="@style/wifi_advanced_toggle"
393                  android:importantForAccessibility="yes"
394                  android:contentDescription="@string/wifi_advanced_toggle_description"
395                  android:text="@string/wifi_show_advanced"/>
396    </LinearLayout>
397
398    <LinearLayout android:id="@+id/wifi_advanced_fields"
399                  android:layout_width="match_parent"
400                  android:layout_height="wrap_content"
401                  android:orientation="vertical"
402                  android:visibility="gone">
403
404        <LinearLayout android:id="@+id/hidden_settings_field"
405                      android:layout_width="match_parent"
406                      android:layout_height="wrap_content"
407                      android:visibility="gone"
408                      style="@style/wifi_item">
409
410            <TextView android:id="@+id/hidden_settings_title"
411                      android:layout_width="wrap_content"
412                      android:layout_height="wrap_content"
413                      style="@style/wifi_item_label"
414                      android:text="@string/wifi_hidden_network"/>
415
416            <Spinner android:id="@+id/hidden_settings"
417                     android:layout_width="match_parent"
418                     android:layout_height="wrap_content"
419                     style="@style/wifi_item_spinner"
420                     android:prompt="@string/wifi_hidden_network"
421                     android:entries="@array/wifi_hidden_entries"/>
422
423            <TextView android:id="@+id/hidden_settings_warning"
424                      android:layout_width="wrap_content"
425                      android:layout_height="wrap_content"
426                      android:padding="8dp"
427                      android:text="@string/wifi_hidden_network_warning"
428                      android:textAppearance="?android:attr/textAppearanceSmall"
429                      android:visibility="gone"/>
430        </LinearLayout>
431
432        <LinearLayout android:id="@+id/metered_settings_fields"
433                      android:layout_width="match_parent"
434                      android:layout_height="wrap_content"
435                      style="@style/wifi_item"
436                      android:visibility="gone">
437
438            <TextView android:id="@+id/metered_settings_title"
439                      android:layout_width="wrap_content"
440                      android:layout_height="wrap_content"
441                      style="@style/wifi_item_label"
442                      android:text="@string/data_usage_metered_yes"/>
443
444            <Spinner android:id="@+id/metered_settings"
445                     android:layout_width="match_parent"
446                     android:layout_height="wrap_content"
447                     style="@style/wifi_item_spinner"
448                     android:prompt="@string/data_usage_metered_yes"
449                     android:entries="@array/wifi_metered_entries"/>
450
451        </LinearLayout>
452
453        <LinearLayout android:id="@+id/proxy_settings_fields"
454                      android:layout_width="match_parent"
455                      android:layout_height="wrap_content"
456                      style="@style/wifi_item"
457                      android:visibility="gone">
458
459            <TextView android:id="@+id/proxy_settings_title"
460                      android:layout_width="wrap_content"
461                      android:layout_height="wrap_content"
462                      style="@style/wifi_item_label"
463                      android:text="@string/proxy_settings_title"/>
464
465            <Spinner android:id="@+id/proxy_settings"
466                     android:layout_width="match_parent"
467                     android:layout_height="wrap_content"
468                     style="@style/wifi_item_spinner"
469                     android:prompt="@string/proxy_settings_title"
470                     android:entries="@array/wifi_proxy_settings"/>
471
472        </LinearLayout>
473
474        <LinearLayout android:id="@+id/proxy_warning_limited_support"
475                      android:layout_width="match_parent"
476                      android:layout_height="wrap_content"
477                      style="@style/wifi_item"
478                      android:visibility="gone">
479            <!--  Placeholder to enable right-justification of warning -->
480            <TextView
481                android:layout_width="wrap_content"
482                android:layout_height="wrap_content"
483                style="@style/wifi_item_label"/>
484
485            <TextView
486                android:layout_width="match_parent"
487                android:layout_height="wrap_content"
488                style="@style/wifi_item_content"
489                android:text="@string/proxy_warning_limited_support"/>
490        </LinearLayout>
491
492        <LinearLayout android:id="@+id/proxy_pac_field"
493                      android:layout_width="match_parent"
494                      android:layout_height="wrap_content"
495                      style="@style/wifi_section"
496                      android:visibility="gone">
497            <LinearLayout
498                android:layout_width="match_parent"
499                android:layout_height="wrap_content"
500                style="@style/wifi_item">
501                <TextView
502                    android:layout_width="wrap_content"
503                    android:layout_height="wrap_content"
504                    style="@style/wifi_item_label"
505                    android:text="@string/proxy_url_title"/>
506
507                <EditText android:id="@+id/proxy_pac"
508                          android:layout_width="match_parent"
509                          android:layout_height="wrap_content"
510                          style="@style/wifi_item_edit_content"
511                          android:hint="@string/proxy_url_hint"
512                          android:inputType="textNoSuggestions"
513                          android:singleLine="true"/>
514            </LinearLayout>
515        </LinearLayout>
516        <LinearLayout android:id="@+id/proxy_fields"
517                      android:layout_width="match_parent"
518                      android:layout_height="wrap_content"
519                      style="@style/wifi_section"
520                      android:visibility="gone">
521
522            <LinearLayout
523                android:layout_width="match_parent"
524                android:layout_height="wrap_content"
525                style="@style/wifi_item">
526                <TextView
527                    android:layout_width="wrap_content"
528                    android:layout_height="wrap_content"
529                    style="@style/wifi_item_label"
530                    android:text="@string/proxy_hostname_label"/>
531
532                <EditText android:id="@+id/proxy_hostname"
533                          android:layout_width="match_parent"
534                          android:layout_height="wrap_content"
535                          style="@style/wifi_item_edit_content"
536                          android:hint="@string/proxy_hostname_hint"
537                          android:inputType="textNoSuggestions"
538                          android:singleLine="true"/>
539            </LinearLayout>
540            <LinearLayout
541                android:layout_width="match_parent"
542                android:layout_height="wrap_content"
543                style="@style/wifi_item">
544                <TextView
545                    android:layout_width="wrap_content"
546                    android:layout_height="wrap_content"
547                    style="@style/wifi_item_label"
548                    android:text="@string/proxy_port_label"/>
549
550                <EditText android:id="@+id/proxy_port"
551                          android:layout_width="match_parent"
552                          android:layout_height="wrap_content"
553                          style="@style/wifi_item_edit_content"
554                          android:hint="@string/proxy_port_hint"
555                          android:inputType="number"
556                          android:singleLine="true"/>
557            </LinearLayout>
558            <LinearLayout
559                android:layout_width="match_parent"
560                android:layout_height="wrap_content"
561                style="@style/wifi_item">
562                <TextView
563                    android:layout_width="wrap_content"
564                    android:layout_height="wrap_content"
565                    style="@style/wifi_item_label"
566                    android:text="@string/proxy_exclusionlist_label"/>
567
568                <EditText android:id="@+id/proxy_exclusionlist"
569                          android:layout_width="match_parent"
570                          android:layout_height="wrap_content"
571                          style="@style/wifi_item_edit_content"
572                          android:hint="@string/proxy_exclusionlist_hint"
573                          android:inputType="textNoSuggestions"
574                          android:singleLine="true"/>
575            </LinearLayout>
576        </LinearLayout>
577
578        <LinearLayout android:id="@+id/ip_fields"
579                      android:layout_width="match_parent"
580                      android:layout_height="wrap_content"
581                      style="@style/wifi_item"
582                      android:visibility="gone">
583
584            <TextView
585                android:layout_width="wrap_content"
586                android:layout_height="wrap_content"
587                style="@style/wifi_item_label"
588                android:text="@string/wifi_ip_settings"/>
589
590            <Spinner android:id="@+id/ip_settings"
591                     android:layout_width="match_parent"
592                     android:layout_height="wrap_content"
593                     style="@style/wifi_item_spinner"
594                     android:prompt="@string/wifi_ip_settings"
595                     android:entries="@array/wifi_ip_settings"/>
596
597        </LinearLayout>
598
599        <LinearLayout android:id="@+id/staticip"
600                      android:layout_width="match_parent"
601                      android:layout_height="wrap_content"
602                      style="@style/wifi_section"
603                      android:visibility="gone">
604            <LinearLayout
605                android:layout_width="match_parent"
606                android:layout_height="wrap_content"
607                style="@style/wifi_item">
608                <TextView
609                    android:layout_width="wrap_content"
610                    android:layout_height="wrap_content"
611                    style="@style/wifi_item_label"
612                    android:text="@string/wifi_ip_address"/>
613
614                <EditText android:id="@+id/ipaddress"
615                          android:layout_width="match_parent"
616                          android:layout_height="wrap_content"
617                          style="@style/wifi_item_edit_content"
618                          android:singleLine="true"
619                          android:hint="@string/wifi_ip_address_hint"
620                          android:inputType="textNoSuggestions"/>
621            </LinearLayout>
622
623            <LinearLayout
624                android:layout_width="match_parent"
625                android:layout_height="wrap_content"
626                style="@style/wifi_item">
627                <TextView
628                    android:layout_width="wrap_content"
629                    android:layout_height="wrap_content"
630                    style="@style/wifi_item_label"
631                    android:text="@string/wifi_gateway"/>
632
633                <EditText android:id="@+id/gateway"
634                          android:layout_width="match_parent"
635                          android:layout_height="wrap_content"
636                          style="@style/wifi_item_edit_content"
637                          android:singleLine="true"
638                          android:hint="@string/wifi_gateway_hint"
639                          android:inputType="textNoSuggestions"/>
640            </LinearLayout>
641
642            <LinearLayout
643                android:layout_width="match_parent"
644                android:layout_height="wrap_content"
645                style="@style/wifi_item">
646                <TextView
647                    android:layout_width="wrap_content"
648                    android:layout_height="wrap_content"
649                    style="@style/wifi_item_label"
650                    android:text="@string/wifi_network_prefix_length"/>
651
652                <EditText android:id="@+id/network_prefix_length"
653                          android:layout_width="match_parent"
654                          android:layout_height="wrap_content"
655                          style="@style/wifi_item_edit_content"
656                          android:singleLine="true"
657                          android:hint="@string/wifi_network_prefix_length_hint"
658                          android:inputType="number"/>
659            </LinearLayout>
660            <LinearLayout
661                android:layout_width="match_parent"
662                android:layout_height="wrap_content"
663                style="@style/wifi_item">
664                <TextView
665                    android:layout_width="wrap_content"
666                    android:layout_height="wrap_content"
667                    style="@style/wifi_item_label"
668                    android:text="@string/wifi_dns1"/>
669
670                <EditText android:id="@+id/dns1"
671                          android:layout_width="match_parent"
672                          android:layout_height="wrap_content"
673                          style="@style/wifi_item_edit_content"
674                          android:singleLine="true"
675                          android:hint="@string/wifi_dns1_hint"
676                          android:inputType="textNoSuggestions"/>
677            </LinearLayout>
678
679            <LinearLayout
680                android:layout_width="match_parent"
681                android:layout_height="wrap_content"
682                style="@style/wifi_item">
683                <TextView
684                    android:layout_width="wrap_content"
685                    android:layout_height="wrap_content"
686                    style="@style/wifi_item_label"
687                    android:text="@string/wifi_dns2"/>
688
689                <EditText android:id="@+id/dns2"
690                          android:layout_width="match_parent"
691                          android:layout_height="wrap_content"
692                          style="@style/wifi_item_edit_content"
693                          android:singleLine="true"
694                          android:hint="@string/wifi_dns2_hint"
695                          android:inputType="textNoSuggestions"/>
696            </LinearLayout>
697        </LinearLayout>
698
699        <LinearLayout android:id="@+id/privacy_settings_fields"
700                      android:layout_width="match_parent"
701                      android:layout_height="wrap_content"
702                      style="@style/wifi_item"
703                      android:visibility="gone">
704
705            <TextView android:id="@+id/privacy_settings_title"
706                      android:layout_width="wrap_content"
707                      android:layout_height="wrap_content"
708                      style="@style/wifi_item_label"
709                      android:text="@string/wifi_privacy_settings"/>
710
711            <Spinner android:id="@+id/privacy_settings"
712                     android:layout_width="match_parent"
713                     android:layout_height="wrap_content"
714                     style="@style/wifi_item_spinner"
715                     android:prompt="@string/wifi_privacy_settings"
716                     android:entries="@array/wifi_privacy_entries"/>
717
718            <Spinner android:id="@+id/dhcp_settings"
719                android:layout_width="match_parent"
720                android:layout_height="wrap_content"
721                style="@style/wifi_item_spinner"
722                android:prompt="@string/wifi_privacy_device_name_settings"
723                android:entries="@array/wifi_dhcp_entries"/>
724        </LinearLayout>
725
726        <LinearLayout
727            android:layout_width="match_parent"
728            android:layout_height="wrap_content"
729            style="@style/wifi_section">
730            <LinearLayout
731                android:layout_width="match_parent"
732                android:layout_height="wrap_content"
733                style="@style/wifi_item">
734                <CheckBox android:id="@+id/shared"
735                          android:layout_width="match_parent"
736                          android:layout_height="wrap_content"
737                          style="@style/wifi_item_content"
738                          android:textSize="14sp"
739                          android:text="@string/wifi_shared"
740                          android:checked="true"/>
741            </LinearLayout>
742        </LinearLayout>
743    </LinearLayout>
744</LinearLayout>
745