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                <androidx.constraintlayout.widget.ConstraintLayout
54                        xmlns:app="http://schemas.android.com/apk/res-auto"
55                        android:layout_width="match_parent"
56                        android:layout_height="wrap_content">
57                    <EditText android:id="@+id/ssid"
58                            android:layout_width="0dp"
59                            android:layout_height="wrap_content"
60                            app:layout_constraintStart_toStartOf="parent"
61                            app:layout_constraintEnd_toStartOf="@+id/ssid_scanner_button"
62                            style="@style/wifi_item_edit_content"
63                            android:hint="@string/wifi_ssid_hint"
64                            android:singleLine="true"
65                            android:inputType="textNoSuggestions"/>
66
67                    <ImageButton
68                        android:id="@+id/ssid_scanner_button"
69                        android:layout_width="wrap_content"
70                        android:layout_height="wrap_content"
71                        android:minWidth="@dimen/min_tap_target_size"
72                        android:minHeight="@dimen/min_tap_target_size"
73                        app:layout_constraintEnd_toEndOf="parent"
74                        android:background="?android:attr/selectableItemBackground"
75                        android:src="@drawable/ic_scan_24dp"
76                        android:contentDescription="@string/wifi_dpp_scan_qr_code"/>
77                </androidx.constraintlayout.widget.ConstraintLayout>
78
79                <LinearLayout android:id="@+id/ssid_too_long_warning"
80                              android:layout_width="match_parent"
81                              android:layout_height="wrap_content"
82                              android:visibility="gone"
83                              style="@style/wifi_item" >
84                    <TextView
85                        android:layout_width="wrap_content"
86                        android:layout_height="wrap_content"
87                        style="@style/wifi_item_warning"
88                        android:text="@string/wifi_ssid_too_long" />
89                </LinearLayout>
90
91             </LinearLayout>
92
93            <LinearLayout
94                    android:layout_width="match_parent"
95                    android:layout_height="wrap_content"
96                    style="@style/wifi_item" >
97                <TextView
98                        android:layout_width="wrap_content"
99                        android:layout_height="wrap_content"
100                        android:minEms="16"
101                        style="@style/wifi_item_label"
102                        android:text="@string/wifi_security" />
103
104                <!-- Entries are added dynamically to this spinner -->
105                <!-- See WifiConfigController.configureSecuritySpinner -->
106                <Spinner android:id="@+id/security"
107                        android:layout_width="match_parent"
108                        android:layout_height="wrap_content"
109                        style="@style/wifi_item_spinner"
110                        android:prompt="@string/wifi_security" />
111            </LinearLayout>
112        </LinearLayout>
113
114        <LinearLayout android:id="@+id/security_fields"
115                android:layout_width="match_parent"
116                android:layout_height="wrap_content"
117                style="@style/wifi_section"
118                android:visibility="gone">
119
120            <LinearLayout android:id="@+id/eap"
121                    android:layout_width="match_parent"
122                    android:layout_height="wrap_content"
123                    style="@style/wifi_section"
124                    android:visibility="gone">
125
126                <LinearLayout android:id="@+id/l_method"
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/wifi_eap_method" />
136
137                    <Spinner android:id="@+id/method"
138                            android:layout_width="match_parent"
139                            android:layout_height="wrap_content"
140                            style="@style/wifi_item_spinner"
141                            android:prompt="@string/wifi_eap_method" />
142                </LinearLayout>
143
144                <LinearLayout android:id="@+id/l_phase2"
145                        android:layout_width="match_parent"
146                        android:layout_height="wrap_content"
147                        android:visibility="gone"
148                        style="@style/wifi_item" >
149                    <TextView
150                            android:layout_width="wrap_content"
151                            android:layout_height="wrap_content"
152                            style="@style/wifi_item_label"
153                            android:text="@string/please_select_phase2" />
154
155                    <Spinner android:id="@+id/phase2"
156                            android:layout_width="match_parent"
157                            android:layout_height="wrap_content"
158                            style="@style/wifi_item_spinner"
159                            android:prompt="@string/please_select_phase2" />
160                </LinearLayout>
161
162                <LinearLayout android:id="@+id/l_ca_cert"
163                        android:layout_width="match_parent"
164                        android:layout_height="wrap_content"
165                        android:visibility="gone"
166                        style="@style/wifi_item" >
167                    <TextView
168                            android:layout_width="wrap_content"
169                            android:layout_height="wrap_content"
170                            style="@style/wifi_item_label"
171                            android:text="@string/wifi_eap_ca_cert" />
172
173                    <Spinner android:id="@+id/ca_cert"
174                            android:layout_width="match_parent"
175                            android:layout_height="wrap_content"
176                            style="@style/wifi_item_spinner"
177                            android:prompt="@string/wifi_eap_ca_cert" />
178                </LinearLayout>
179
180                <LinearLayout android:id="@+id/no_ca_cert_warning"
181                        android:layout_width="match_parent"
182                        android:layout_height="wrap_content"
183                        android:visibility="gone"
184                        style="@style/wifi_item" >
185                    <TextView
186                            android:layout_width="wrap_content"
187                            android:layout_height="wrap_content"
188                            style="@style/wifi_item_warning"
189                            android:text="@string/wifi_do_not_validate_eap_server_warning" />
190                </LinearLayout>
191
192                <LinearLayout android:id="@+id/l_domain"
193                    android:layout_width="match_parent"
194                    android:layout_height="wrap_content"
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_domain" />
201
202                    <EditText android:id="@+id/domain"
203                            android:layout_width="match_parent"
204                            android:layout_height="wrap_content"
205                            style="@style/wifi_item_edit_content"
206                            android:singleLine="true"
207                            android:inputType="textNoSuggestions" />
208                </LinearLayout>
209
210                <LinearLayout android:id="@+id/no_domain_warning"
211                        android:layout_width="match_parent"
212                        android:layout_height="wrap_content"
213                        android:visibility="gone"
214                        style="@style/wifi_item" >
215                    <TextView
216                            android:layout_width="wrap_content"
217                            android:layout_height="wrap_content"
218                            style="@style/wifi_item_warning"
219                            android:text="@string/wifi_no_domain_warning" />
220                </LinearLayout>
221
222                <LinearLayout android:id="@+id/l_user_cert"
223                        android:layout_width="match_parent"
224                        android:layout_height="wrap_content"
225                        android:visibility="gone"
226                        style="@style/wifi_item" >
227                    <TextView
228                            android:layout_width="wrap_content"
229                            android:layout_height="wrap_content"
230                            style="@style/wifi_item_label"
231                            android:text="@string/wifi_eap_user_cert" />
232
233                    <Spinner android:id="@+id/user_cert"
234                            android:layout_width="match_parent"
235                            android:layout_height="wrap_content"
236                            style="@style/wifi_item_spinner"
237                            android:prompt="@string/wifi_eap_user_cert" />
238                </LinearLayout>
239
240                <LinearLayout android:id="@+id/l_identity"
241                        android:layout_width="match_parent"
242                        android:layout_height="wrap_content"
243                        android:visibility="gone"
244                        style="@style/wifi_item" >
245                    <TextView
246                            android:layout_width="wrap_content"
247                            android:layout_height="wrap_content"
248                            style="@style/wifi_item_label"
249                            android:text="@string/wifi_eap_identity" />
250
251                    <EditText android:id="@+id/identity"
252                            android:layout_width="match_parent"
253                            android:layout_height="wrap_content"
254                            style="@style/wifi_item_edit_content"
255                            android:singleLine="true"
256                            android:inputType="textNoSuggestions" />
257                </LinearLayout>
258
259                <LinearLayout android:id="@+id/l_anonymous"
260                        android:layout_width="match_parent"
261                        android:layout_height="wrap_content"
262                        android:visibility="gone"
263                        style="@style/wifi_item" >
264                    <TextView
265                            android:layout_width="wrap_content"
266                            android:layout_height="wrap_content"
267                            style="@style/wifi_item_label"
268                            android:text="@string/wifi_eap_anonymous" />
269
270                    <EditText android:id="@+id/anonymous"
271                            android:layout_width="match_parent"
272                            android:layout_height="wrap_content"
273                            style="@style/wifi_item_edit_content"
274                            android:singleLine="true"
275                            android:inputType="textNoSuggestions" />
276                </LinearLayout>
277            </LinearLayout>
278
279            <LinearLayout android:id="@+id/password_layout"
280                    android:layout_width="match_parent"
281                    android:layout_height="wrap_content"
282                    style="@style/wifi_item" >
283                <TextView
284                        android:layout_width="wrap_content"
285                        android:layout_height="wrap_content"
286                        style="@style/wifi_item_label"
287                        android:text="@string/wifi_password" />
288
289                <androidx.constraintlayout.widget.ConstraintLayout
290                    xmlns:app="http://schemas.android.com/apk/res-auto"
291                    android:layout_width="match_parent"
292                    android:layout_height="wrap_content">
293                    <EditText android:id="@+id/password"
294                              android:layout_width="0dp"
295                              android:layout_height="wrap_content"
296                              app:layout_constraintStart_toStartOf="parent"
297                              app:layout_constraintEnd_toStartOf="@+id/password_scanner_button"
298                              style="@style/wifi_item_edit_content"
299                              android:singleLine="true"
300                              android:password="true"/>
301
302                    <ImageButton
303                        android:id="@+id/password_scanner_button"
304                        android:layout_width="wrap_content"
305                        android:layout_height="wrap_content"
306                        android:minWidth="@dimen/min_tap_target_size"
307                        android:minHeight="@dimen/min_tap_target_size"
308                        app:layout_constraintEnd_toEndOf="parent"
309                        android:background="?android:attr/selectableItemBackground"
310                        android:src="@drawable/ic_scan_24dp"
311                        android:contentDescription="@string/wifi_dpp_scan_qr_code"/>
312                </androidx.constraintlayout.widget.ConstraintLayout>
313            </LinearLayout>
314
315            <LinearLayout android:id="@+id/show_password_layout"
316                    android:layout_width="match_parent"
317                    android:layout_height="wrap_content"
318                    style="@style/wifi_item" >
319                <!--  Dummy to enable right-justification of checkbox -->
320                <TextView
321                        android:layout_width="wrap_content"
322                        android:layout_height="wrap_content"
323                        style="@style/wifi_item_label" />
324
325                <CheckBox android:id="@+id/show_password"
326                        android:layout_width="match_parent"
327                        android:layout_height="wrap_content"
328                        style="@style/wifi_item_content"
329                        android:text="@string/wifi_show_password" />
330            </LinearLayout>
331        </LinearLayout>
332
333        <LinearLayout android:id="@+id/wifi_advanced_toggle"
334                android:layout_width="match_parent"
335                android:layout_height="wrap_content"
336                style="@style/wifi_item"
337                android:paddingBottom="4dp"
338                android:importantForAccessibility="yes"
339                android:contentDescription="@string/wifi_advanced_toggle_description_collapsed"
340                android:visibility="gone">
341            <CheckBox android:id="@+id/wifi_advanced_togglebox"
342                    android:layout_width="match_parent"
343                    android:layout_height="wrap_content"
344                    style="@style/wifi_advanced_toggle"
345                    android:importantForAccessibility="noHideDescendants"
346                    android:text="@string/wifi_show_advanced" />
347        </LinearLayout>
348
349        <LinearLayout android:id="@+id/wifi_advanced_fields"
350                    android:layout_width="match_parent"
351                    android:layout_height="wrap_content"
352                    android:orientation="vertical"
353                    android:visibility="gone">
354
355            <LinearLayout android:id="@+id/metered_settings_fields"
356                          android:layout_width="match_parent"
357                          android:layout_height="wrap_content"
358                          style="@style/wifi_item">
359
360                <TextView android:id="@+id/metered_settings_title"
361                          android:layout_width="wrap_content"
362                          android:layout_height="wrap_content"
363                          style="@style/wifi_item_label"
364                          android:text="@string/data_usage_metered_yes" />
365
366                <Spinner android:id="@+id/metered_settings"
367                         android:layout_width="match_parent"
368                         android:layout_height="wrap_content"
369                         style="@style/wifi_item_spinner"
370                         android:prompt="@string/data_usage_metered_yes"
371                         android:entries="@array/wifi_metered_entries"/>
372
373            </LinearLayout>
374
375            <LinearLayout android:id="@+id/proxy_settings_fields"
376                    android:layout_width="match_parent"
377                    android:layout_height="wrap_content"
378                    style="@style/wifi_item"
379                    android:visibility="gone">
380
381                <TextView android:id="@+id/proxy_settings_title"
382                        android:layout_width="wrap_content"
383                        android:layout_height="wrap_content"
384                        style="@style/wifi_item_label"
385                        android:text="@string/proxy_settings_title" />
386
387                <Spinner android:id="@+id/proxy_settings"
388                        android:layout_width="match_parent"
389                        android:layout_height="wrap_content"
390                        style="@style/wifi_item_spinner"
391                        android:prompt="@string/proxy_settings_title"
392                        android:entries="@array/wifi_proxy_settings" />
393
394            </LinearLayout>
395
396            <LinearLayout android:id="@+id/proxy_warning_limited_support"
397                    android:layout_width="match_parent"
398                    android:layout_height="wrap_content"
399                    style="@style/wifi_item"
400                    android:visibility="gone">
401                <!--  Dummy to enable right-justification of warning -->
402                <TextView
403                        android:layout_width="wrap_content"
404                        android:layout_height="wrap_content"
405                        style="@style/wifi_item_label" />
406
407                <TextView
408                        android:layout_width="match_parent"
409                        android:layout_height="wrap_content"
410                        style="@style/wifi_item_content"
411                        android:text="@string/proxy_warning_limited_support" />
412            </LinearLayout>
413
414            <LinearLayout android:id="@+id/proxy_pac_field"
415                    android:layout_width="match_parent"
416                    android:layout_height="wrap_content"
417                    style="@style/wifi_section"
418                    android:visibility="gone">
419                <LinearLayout
420                        android:layout_width="match_parent"
421                        android:layout_height="wrap_content"
422                        style="@style/wifi_item">
423                    <TextView
424                            android:layout_width="wrap_content"
425                            android:layout_height="wrap_content"
426                            style="@style/wifi_item_label"
427                            android:text="@string/proxy_url_title" />
428
429                    <EditText android:id="@+id/proxy_pac"
430                            android:layout_width="match_parent"
431                            android:layout_height="wrap_content"
432                            style="@style/wifi_item_content"
433                            android:hint="@string/proxy_url_hint"
434                            android:inputType="textNoSuggestions"
435                            android:singleLine="true"/>
436                </LinearLayout>
437            </LinearLayout>
438            <LinearLayout android:id="@+id/proxy_fields"
439                    android:layout_width="match_parent"
440                    android:layout_height="wrap_content"
441                    style="@style/wifi_section"
442                    android:visibility="gone">
443
444                <LinearLayout
445                        android:layout_width="match_parent"
446                        android:layout_height="wrap_content"
447                        style="@style/wifi_item">
448                    <TextView
449                            android:layout_width="wrap_content"
450                            android:layout_height="wrap_content"
451                            style="@style/wifi_item_label"
452                            android:text="@string/proxy_hostname_label" />
453
454                    <EditText android:id="@+id/proxy_hostname"
455                            android:layout_width="match_parent"
456                            android:layout_height="wrap_content"
457                            style="@style/wifi_item_edit_content"
458                            android:hint="@string/proxy_hostname_hint"
459                            android:inputType="textNoSuggestions"
460                            android:singleLine="true" />
461                </LinearLayout>
462                <LinearLayout
463                        android:layout_width="match_parent"
464                        android:layout_height="wrap_content"
465                        style="@style/wifi_item">
466                    <TextView
467                            android:layout_width="wrap_content"
468                            android:layout_height="wrap_content"
469                            style="@style/wifi_item_label"
470                            android:text="@string/proxy_port_label" />
471
472                    <EditText android:id="@+id/proxy_port"
473                            android:layout_width="match_parent"
474                            android:layout_height="wrap_content"
475                            style="@style/wifi_item_edit_content"
476                            android:hint="@string/proxy_port_hint"
477                            android:inputType="number"
478                            android:singleLine="true" />
479                </LinearLayout>
480                <LinearLayout
481                        android:layout_width="match_parent"
482                        android:layout_height="wrap_content"
483                        style="@style/wifi_item">
484                    <TextView
485                            android:layout_width="wrap_content"
486                            android:layout_height="wrap_content"
487                            style="@style/wifi_item_label"
488                            android:text="@string/proxy_exclusionlist_label" />
489
490                    <EditText android:id="@+id/proxy_exclusionlist"
491                            android:layout_width="match_parent"
492                            android:layout_height="wrap_content"
493                            style="@style/wifi_item_edit_content"
494                            android:hint="@string/proxy_exclusionlist_hint"
495                            android:inputType="textNoSuggestions"
496                            android:singleLine="true" />
497                </LinearLayout>
498            </LinearLayout>
499
500            <LinearLayout android:id="@+id/ip_fields"
501                    android:layout_width="match_parent"
502                    android:layout_height="wrap_content"
503                    style="@style/wifi_item"
504                    android:visibility="gone">
505
506                <TextView
507                        android:layout_width="wrap_content"
508                        android:layout_height="wrap_content"
509                        style="@style/wifi_item_label"
510                        android:text="@string/wifi_ip_settings" />
511
512                <Spinner android:id="@+id/ip_settings"
513                        android:layout_width="match_parent"
514                        android:layout_height="wrap_content"
515                        style="@style/wifi_item_spinner"
516                        android:prompt="@string/wifi_ip_settings"
517                        android:entries="@array/wifi_ip_settings" />
518
519            </LinearLayout>
520
521            <LinearLayout android:id="@+id/privacy_settings_fields"
522                          android:layout_width="match_parent"
523                          android:layout_height="wrap_content"
524                          style="@style/wifi_item"
525                          android:visibility="gone">
526
527                <TextView android:id="@+id/privacy_settings_title"
528                          android:layout_width="wrap_content"
529                          android:layout_height="wrap_content"
530                          style="@style/wifi_item_label"
531                          android:text="@string/wifi_privacy_settings" />
532
533                <Spinner android:id="@+id/privacy_settings"
534                         android:layout_width="match_parent"
535                         android:layout_height="wrap_content"
536                         style="@style/wifi_item_spinner"
537                         android:prompt="@string/wifi_privacy_settings"
538                         android:entries="@array/wifi_privacy_entries"/>
539
540            </LinearLayout>
541
542            <LinearLayout android:id="@+id/staticip"
543                    android:layout_width="match_parent"
544                    android:layout_height="wrap_content"
545                    style="@style/wifi_section"
546                    android:visibility="gone">
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_ip_address" />
556
557                    <EditText android:id="@+id/ipaddress"
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_ip_address_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_gateway" />
575
576                    <EditText android:id="@+id/gateway"
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_gateway_hint"
582                            android:inputType="textNoSuggestions" />
583                </LinearLayout>
584
585                <LinearLayout
586                        android:layout_width="match_parent"
587                        android:layout_height="wrap_content"
588                        style="@style/wifi_item" >
589                    <TextView
590                            android:layout_width="wrap_content"
591                            android:layout_height="wrap_content"
592                            style="@style/wifi_item_label"
593                            android:text="@string/wifi_network_prefix_length" />
594
595                    <EditText android:id="@+id/network_prefix_length"
596                            android:layout_width="match_parent"
597                            android:layout_height="wrap_content"
598                            style="@style/wifi_item_edit_content"
599                            android:singleLine="true"
600                            android:hint="@string/wifi_network_prefix_length_hint"
601                            android:inputType="number" />
602                </LinearLayout>
603                <LinearLayout
604                        android:layout_width="match_parent"
605                        android:layout_height="wrap_content"
606                        style="@style/wifi_item" >
607                    <TextView
608                            android:layout_width="wrap_content"
609                            android:layout_height="wrap_content"
610                            style="@style/wifi_item_label"
611                            android:text="@string/wifi_dns1" />
612
613                    <EditText android:id="@+id/dns1"
614                            android:layout_width="match_parent"
615                            android:layout_height="wrap_content"
616                            style="@style/wifi_item_edit_content"
617                            android:singleLine="true"
618                            android:hint="@string/wifi_dns1_hint"
619                            android:inputType="textNoSuggestions" />
620                </LinearLayout>
621
622                <LinearLayout
623                        android:layout_width="match_parent"
624                        android:layout_height="wrap_content"
625                        style="@style/wifi_item" >
626                    <TextView
627                            android:layout_width="wrap_content"
628                            android:layout_height="wrap_content"
629                            style="@style/wifi_item_label"
630                            android:text="@string/wifi_dns2" />
631
632                    <EditText android:id="@+id/dns2"
633                            android:layout_width="match_parent"
634                            android:layout_height="wrap_content"
635                            style="@style/wifi_item_edit_content"
636                            android:singleLine="true"
637                            android:hint="@string/wifi_dns2_hint"
638                            android:inputType="textNoSuggestions" />
639                </LinearLayout>
640            </LinearLayout>
641
642            <LinearLayout
643                    android:layout_width="match_parent"
644                    android:layout_height="wrap_content"
645                    style="@style/wifi_section">
646                <LinearLayout
647                        android:layout_width="match_parent"
648                        android:layout_height="wrap_content"
649                        style="@style/wifi_item" >
650                    <CheckBox android:id="@+id/shared"
651                            android:layout_width="match_parent"
652                            android:layout_height="wrap_content"
653                            style="@style/wifi_item_content"
654                            android:textSize="14sp"
655                            android:text="@string/wifi_shared"
656                            android:checked="true" />
657                </LinearLayout>
658            </LinearLayout>
659
660            <LinearLayout android:id="@+id/hidden_settings_field"
661                          android:layout_width="match_parent"
662                          android:layout_height="wrap_content"
663                          android:visibility="gone"
664                          style="@style/wifi_item">
665
666                <TextView android:id="@+id/hidden_settings_title"
667                          android:layout_width="wrap_content"
668                          android:layout_height="wrap_content"
669                          style="@style/wifi_item_label"
670                          android:text="@string/wifi_hidden_network" />
671
672                <Spinner android:id="@+id/hidden_settings"
673                         android:layout_width="match_parent"
674                         android:layout_height="wrap_content"
675                         style="@style/wifi_item_spinner"
676                         android:prompt="@string/wifi_hidden_network"
677                         android:entries="@array/wifi_hidden_entries"/>
678
679                <TextView android:id="@+id/hidden_settings_warning"
680                          android:layout_width="wrap_content"
681                          android:layout_height="wrap_content"
682                          android:padding="8dp"
683                          android:text="@string/wifi_hidden_network_warning"
684                          android:textAppearance="?android:attr/textAppearanceSmall"
685                          android:visibility="gone"/>
686            </LinearLayout>
687        </LinearLayout>
688    </LinearLayout>
689</ScrollView>
690