1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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                            android:entries="@array/wifi_eap_method" />
143                </LinearLayout>
144
145                <LinearLayout android:id="@+id/l_phase2"
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/please_select_phase2" />
155
156                    <Spinner android:id="@+id/phase2"
157                            android:layout_width="match_parent"
158                            android:layout_height="wrap_content"
159                            style="@style/wifi_item_spinner"
160                            android:prompt="@string/please_select_phase2"
161                            android:entries="@array/wifi_phase2_entries" />
162                </LinearLayout>
163
164                <LinearLayout android:id="@+id/l_ca_cert"
165                        android:layout_width="match_parent"
166                        android:layout_height="wrap_content"
167                        android:visibility="gone"
168                        style="@style/wifi_item" >
169                    <TextView
170                            android:layout_width="wrap_content"
171                            android:layout_height="wrap_content"
172                            style="@style/wifi_item_label"
173                            android:text="@string/wifi_eap_ca_cert" />
174
175                    <Spinner android:id="@+id/ca_cert"
176                            android:layout_width="match_parent"
177                            android:layout_height="wrap_content"
178                            style="@style/wifi_item_spinner"
179                            android:prompt="@string/wifi_eap_ca_cert" />
180                </LinearLayout>
181
182                <LinearLayout android:id="@+id/no_ca_cert_warning"
183                        android:layout_width="match_parent"
184                        android:layout_height="wrap_content"
185                        android:visibility="gone"
186                        style="@style/wifi_item" >
187                    <TextView
188                            android:layout_width="wrap_content"
189                            android:layout_height="wrap_content"
190                            style="@style/wifi_item_warning"
191                            android:text="@string/wifi_do_not_validate_eap_server_warning" />
192                </LinearLayout>
193
194                <LinearLayout android:id="@+id/l_domain"
195                    android:layout_width="match_parent"
196                    android:layout_height="wrap_content"
197                    style="@style/wifi_item" >
198                    <TextView
199                            android:layout_width="wrap_content"
200                            android:layout_height="wrap_content"
201                            style="@style/wifi_item_label"
202                            android:text="@string/wifi_eap_domain" />
203
204                    <EditText android:id="@+id/domain"
205                            android:layout_width="match_parent"
206                            android:layout_height="wrap_content"
207                            style="@style/wifi_item_edit_content"
208                            android:singleLine="true"
209                            android:inputType="textNoSuggestions" />
210                </LinearLayout>
211
212                <LinearLayout android:id="@+id/no_domain_warning"
213                        android:layout_width="match_parent"
214                        android:layout_height="wrap_content"
215                        android:visibility="gone"
216                        style="@style/wifi_item" >
217                    <TextView
218                            android:layout_width="wrap_content"
219                            android:layout_height="wrap_content"
220                            style="@style/wifi_item_warning"
221                            android:text="@string/wifi_no_domain_warning" />
222                </LinearLayout>
223
224                <LinearLayout android:id="@+id/l_user_cert"
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_user_cert" />
234
235                    <Spinner android:id="@+id/user_cert"
236                            android:layout_width="match_parent"
237                            android:layout_height="wrap_content"
238                            style="@style/wifi_item_spinner"
239                            android:prompt="@string/wifi_eap_user_cert" />
240                </LinearLayout>
241
242                <LinearLayout android:id="@+id/l_identity"
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_identity" />
252
253                    <EditText android:id="@+id/identity"
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/l_anonymous"
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_label"
270                            android:text="@string/wifi_eap_anonymous" />
271
272                    <EditText android:id="@+id/anonymous"
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:inputType="textNoSuggestions" />
278                </LinearLayout>
279            </LinearLayout>
280
281            <LinearLayout android:id="@+id/password_layout"
282                    android:layout_width="match_parent"
283                    android:layout_height="wrap_content"
284                    style="@style/wifi_item" >
285                <TextView
286                        android:layout_width="wrap_content"
287                        android:layout_height="wrap_content"
288                        style="@style/wifi_item_label"
289                        android:text="@string/wifi_password" />
290
291                <androidx.constraintlayout.widget.ConstraintLayout
292                    xmlns:app="http://schemas.android.com/apk/res-auto"
293                    android:layout_width="match_parent"
294                    android:layout_height="wrap_content">
295                    <EditText android:id="@+id/password"
296                              android:layout_width="0dp"
297                              android:layout_height="wrap_content"
298                              app:layout_constraintStart_toStartOf="parent"
299                              app:layout_constraintEnd_toStartOf="@+id/password_scanner_button"
300                              style="@style/wifi_item_edit_content"
301                              android:singleLine="true"
302                              android:password="true"/>
303
304                    <ImageButton
305                        android:id="@+id/password_scanner_button"
306                        android:layout_width="wrap_content"
307                        android:layout_height="wrap_content"
308                        android:minWidth="@dimen/min_tap_target_size"
309                        android:minHeight="@dimen/min_tap_target_size"
310                        app:layout_constraintEnd_toEndOf="parent"
311                        android:background="?android:attr/selectableItemBackground"
312                        android:src="@drawable/ic_scan_24dp"
313                        android:contentDescription="@string/wifi_dpp_scan_qr_code"/>
314                </androidx.constraintlayout.widget.ConstraintLayout>
315            </LinearLayout>
316
317            <LinearLayout android:id="@+id/show_password_layout"
318                    android:layout_width="match_parent"
319                    android:layout_height="wrap_content"
320                    style="@style/wifi_item" >
321                <!--  Placeholder to enable right-justification of checkbox -->
322                <TextView
323                        android:layout_width="wrap_content"
324                        android:layout_height="wrap_content"
325                        style="@style/wifi_item_label" />
326
327                <CheckBox android:id="@+id/show_password"
328                        android:layout_width="match_parent"
329                        android:layout_height="wrap_content"
330                        style="@style/wifi_item_content"
331                        android:text="@string/wifi_show_password" />
332            </LinearLayout>
333        </LinearLayout>
334
335        <LinearLayout android:id="@+id/wifi_advanced_toggle"
336                android:layout_width="match_parent"
337                android:layout_height="wrap_content"
338                style="@style/wifi_item"
339                android:paddingBottom="4dp"
340                android:importantForAccessibility="yes"
341                android:contentDescription="@string/wifi_advanced_toggle_description_collapsed"
342                android:visibility="gone">
343            <CheckBox android:id="@+id/wifi_advanced_togglebox"
344                    android:layout_width="match_parent"
345                    android:layout_height="wrap_content"
346                    style="@style/wifi_advanced_toggle"
347                    android:importantForAccessibility="noHideDescendants"
348                    android:text="@string/wifi_show_advanced" />
349        </LinearLayout>
350
351        <LinearLayout android:id="@+id/wifi_advanced_fields"
352                    android:layout_width="match_parent"
353                    android:layout_height="wrap_content"
354                    android:orientation="vertical"
355                    android:visibility="gone">
356
357            <LinearLayout android:id="@+id/metered_settings_fields"
358                          android:layout_width="match_parent"
359                          android:layout_height="wrap_content"
360                          style="@style/wifi_item">
361
362                <TextView android:id="@+id/metered_settings_title"
363                          android:layout_width="wrap_content"
364                          android:layout_height="wrap_content"
365                          style="@style/wifi_item_label"
366                          android:text="@string/data_usage_metered_yes" />
367
368                <Spinner android:id="@+id/metered_settings"
369                         android:layout_width="match_parent"
370                         android:layout_height="wrap_content"
371                         style="@style/wifi_item_spinner"
372                         android:prompt="@string/data_usage_metered_yes"
373                         android:entries="@array/wifi_metered_entries"/>
374
375            </LinearLayout>
376
377            <LinearLayout android:id="@+id/proxy_settings_fields"
378                    android:layout_width="match_parent"
379                    android:layout_height="wrap_content"
380                    style="@style/wifi_item"
381                    android:visibility="gone">
382
383                <TextView android:id="@+id/proxy_settings_title"
384                        android:layout_width="wrap_content"
385                        android:layout_height="wrap_content"
386                        style="@style/wifi_item_label"
387                        android:text="@string/proxy_settings_title" />
388
389                <Spinner android:id="@+id/proxy_settings"
390                        android:layout_width="match_parent"
391                        android:layout_height="wrap_content"
392                        style="@style/wifi_item_spinner"
393                        android:prompt="@string/proxy_settings_title"
394                        android:entries="@array/wifi_proxy_settings" />
395
396            </LinearLayout>
397
398            <LinearLayout android:id="@+id/proxy_warning_limited_support"
399                    android:layout_width="match_parent"
400                    android:layout_height="wrap_content"
401                    style="@style/wifi_item"
402                    android:visibility="gone">
403                <!--  Placeholder to enable right-justification of warning -->
404                <TextView
405                        android:layout_width="wrap_content"
406                        android:layout_height="wrap_content"
407                        style="@style/wifi_item_label" />
408
409                <TextView
410                        android:layout_width="match_parent"
411                        android:layout_height="wrap_content"
412                        style="@style/wifi_item_content"
413                        android:text="@string/proxy_warning_limited_support" />
414            </LinearLayout>
415
416            <LinearLayout android:id="@+id/proxy_pac_field"
417                    android:layout_width="match_parent"
418                    android:layout_height="wrap_content"
419                    style="@style/wifi_section"
420                    android:visibility="gone">
421                <LinearLayout
422                        android:layout_width="match_parent"
423                        android:layout_height="wrap_content"
424                        style="@style/wifi_item">
425                    <TextView
426                            android:layout_width="wrap_content"
427                            android:layout_height="wrap_content"
428                            style="@style/wifi_item_label"
429                            android:text="@string/proxy_url_title" />
430
431                    <EditText android:id="@+id/proxy_pac"
432                            android:layout_width="match_parent"
433                            android:layout_height="wrap_content"
434                            style="@style/wifi_item_content"
435                            android:hint="@string/proxy_url_hint"
436                            android:inputType="textNoSuggestions"
437                            android:singleLine="true"/>
438                </LinearLayout>
439            </LinearLayout>
440            <LinearLayout android:id="@+id/proxy_fields"
441                    android:layout_width="match_parent"
442                    android:layout_height="wrap_content"
443                    style="@style/wifi_section"
444                    android:visibility="gone">
445
446                <LinearLayout
447                        android:layout_width="match_parent"
448                        android:layout_height="wrap_content"
449                        style="@style/wifi_item">
450                    <TextView
451                            android:layout_width="wrap_content"
452                            android:layout_height="wrap_content"
453                            style="@style/wifi_item_label"
454                            android:text="@string/proxy_hostname_label" />
455
456                    <EditText android:id="@+id/proxy_hostname"
457                            android:layout_width="match_parent"
458                            android:layout_height="wrap_content"
459                            style="@style/wifi_item_edit_content"
460                            android:hint="@string/proxy_hostname_hint"
461                            android:inputType="textNoSuggestions"
462                            android:singleLine="true" />
463                </LinearLayout>
464                <LinearLayout
465                        android:layout_width="match_parent"
466                        android:layout_height="wrap_content"
467                        style="@style/wifi_item">
468                    <TextView
469                            android:layout_width="wrap_content"
470                            android:layout_height="wrap_content"
471                            style="@style/wifi_item_label"
472                            android:text="@string/proxy_port_label" />
473
474                    <EditText android:id="@+id/proxy_port"
475                            android:layout_width="match_parent"
476                            android:layout_height="wrap_content"
477                            style="@style/wifi_item_edit_content"
478                            android:hint="@string/proxy_port_hint"
479                            android:inputType="number"
480                            android:singleLine="true" />
481                </LinearLayout>
482                <LinearLayout
483                        android:layout_width="match_parent"
484                        android:layout_height="wrap_content"
485                        style="@style/wifi_item">
486                    <TextView
487                            android:layout_width="wrap_content"
488                            android:layout_height="wrap_content"
489                            style="@style/wifi_item_label"
490                            android:text="@string/proxy_exclusionlist_label" />
491
492                    <EditText android:id="@+id/proxy_exclusionlist"
493                            android:layout_width="match_parent"
494                            android:layout_height="wrap_content"
495                            style="@style/wifi_item_edit_content"
496                            android:hint="@string/proxy_exclusionlist_hint"
497                            android:inputType="textNoSuggestions"
498                            android:singleLine="true" />
499                </LinearLayout>
500            </LinearLayout>
501
502            <LinearLayout android:id="@+id/ip_fields"
503                    android:layout_width="match_parent"
504                    android:layout_height="wrap_content"
505                    style="@style/wifi_item"
506                    android:visibility="gone">
507
508                <TextView
509                        android:layout_width="wrap_content"
510                        android:layout_height="wrap_content"
511                        style="@style/wifi_item_label"
512                        android:text="@string/wifi_ip_settings" />
513
514                <Spinner android:id="@+id/ip_settings"
515                        android:layout_width="match_parent"
516                        android:layout_height="wrap_content"
517                        style="@style/wifi_item_spinner"
518                        android:prompt="@string/wifi_ip_settings"
519                        android:entries="@array/wifi_ip_settings" />
520
521            </LinearLayout>
522
523            <LinearLayout android:id="@+id/privacy_settings_fields"
524                          android:layout_width="match_parent"
525                          android:layout_height="wrap_content"
526                          style="@style/wifi_item"
527                          android:visibility="gone">
528
529                <TextView android:id="@+id/privacy_settings_title"
530                          android:layout_width="wrap_content"
531                          android:layout_height="wrap_content"
532                          style="@style/wifi_item_label"
533                          android:text="@string/wifi_privacy_settings" />
534
535                <Spinner android:id="@+id/privacy_settings"
536                         android:layout_width="match_parent"
537                         android:layout_height="wrap_content"
538                         style="@style/wifi_item_spinner"
539                         android:prompt="@string/wifi_privacy_settings"
540                         android:entries="@array/wifi_privacy_entries"/>
541
542            </LinearLayout>
543
544            <LinearLayout android:id="@+id/staticip"
545                    android:layout_width="match_parent"
546                    android:layout_height="wrap_content"
547                    style="@style/wifi_section"
548                    android:visibility="gone">
549                <LinearLayout
550                        android:layout_width="match_parent"
551                        android:layout_height="wrap_content"
552                        style="@style/wifi_item" >
553                    <TextView
554                            android:layout_width="wrap_content"
555                            android:layout_height="wrap_content"
556                            style="@style/wifi_item_label"
557                            android:text="@string/wifi_ip_address" />
558
559                    <EditText android:id="@+id/ipaddress"
560                            android:layout_width="match_parent"
561                            android:layout_height="wrap_content"
562                            style="@style/wifi_item_edit_content"
563                            android:singleLine="true"
564                            android:hint="@string/wifi_ip_address_hint"
565                            android:inputType="textNoSuggestions" />
566                </LinearLayout>
567
568                <LinearLayout
569                        android:layout_width="match_parent"
570                        android:layout_height="wrap_content"
571                        style="@style/wifi_item" >
572                    <TextView
573                            android:layout_width="wrap_content"
574                            android:layout_height="wrap_content"
575                            style="@style/wifi_item_label"
576                            android:text="@string/wifi_gateway" />
577
578                    <EditText android:id="@+id/gateway"
579                            android:layout_width="match_parent"
580                            android:layout_height="wrap_content"
581                            style="@style/wifi_item_edit_content"
582                            android:singleLine="true"
583                            android:hint="@string/wifi_gateway_hint"
584                            android:inputType="textNoSuggestions" />
585                </LinearLayout>
586
587                <LinearLayout
588                        android:layout_width="match_parent"
589                        android:layout_height="wrap_content"
590                        style="@style/wifi_item" >
591                    <TextView
592                            android:layout_width="wrap_content"
593                            android:layout_height="wrap_content"
594                            style="@style/wifi_item_label"
595                            android:text="@string/wifi_network_prefix_length" />
596
597                    <EditText android:id="@+id/network_prefix_length"
598                            android:layout_width="match_parent"
599                            android:layout_height="wrap_content"
600                            style="@style/wifi_item_edit_content"
601                            android:singleLine="true"
602                            android:hint="@string/wifi_network_prefix_length_hint"
603                            android:inputType="number" />
604                </LinearLayout>
605                <LinearLayout
606                        android:layout_width="match_parent"
607                        android:layout_height="wrap_content"
608                        style="@style/wifi_item" >
609                    <TextView
610                            android:layout_width="wrap_content"
611                            android:layout_height="wrap_content"
612                            style="@style/wifi_item_label"
613                            android:text="@string/wifi_dns1" />
614
615                    <EditText android:id="@+id/dns1"
616                            android:layout_width="match_parent"
617                            android:layout_height="wrap_content"
618                            style="@style/wifi_item_edit_content"
619                            android:singleLine="true"
620                            android:hint="@string/wifi_dns1_hint"
621                            android:inputType="textNoSuggestions" />
622                </LinearLayout>
623
624                <LinearLayout
625                        android:layout_width="match_parent"
626                        android:layout_height="wrap_content"
627                        style="@style/wifi_item" >
628                    <TextView
629                            android:layout_width="wrap_content"
630                            android:layout_height="wrap_content"
631                            style="@style/wifi_item_label"
632                            android:text="@string/wifi_dns2" />
633
634                    <EditText android:id="@+id/dns2"
635                            android:layout_width="match_parent"
636                            android:layout_height="wrap_content"
637                            style="@style/wifi_item_edit_content"
638                            android:singleLine="true"
639                            android:hint="@string/wifi_dns2_hint"
640                            android:inputType="textNoSuggestions" />
641                </LinearLayout>
642            </LinearLayout>
643
644            <LinearLayout
645                    android:layout_width="match_parent"
646                    android:layout_height="wrap_content"
647                    style="@style/wifi_section">
648                <LinearLayout
649                        android:layout_width="match_parent"
650                        android:layout_height="wrap_content"
651                        style="@style/wifi_item" >
652                    <CheckBox android:id="@+id/shared"
653                            android:layout_width="match_parent"
654                            android:layout_height="wrap_content"
655                            style="@style/wifi_item_content"
656                            android:textSize="14sp"
657                            android:text="@string/wifi_shared"
658                            android:checked="true" />
659                </LinearLayout>
660            </LinearLayout>
661
662            <LinearLayout android:id="@+id/hidden_settings_field"
663                          android:layout_width="match_parent"
664                          android:layout_height="wrap_content"
665                          android:visibility="gone"
666                          style="@style/wifi_item">
667
668                <TextView android:id="@+id/hidden_settings_title"
669                          android:layout_width="wrap_content"
670                          android:layout_height="wrap_content"
671                          style="@style/wifi_item_label"
672                          android:text="@string/wifi_hidden_network" />
673
674                <Spinner android:id="@+id/hidden_settings"
675                         android:layout_width="match_parent"
676                         android:layout_height="wrap_content"
677                         style="@style/wifi_item_spinner"
678                         android:prompt="@string/wifi_hidden_network"
679                         android:entries="@array/wifi_hidden_entries"/>
680
681                <TextView android:id="@+id/hidden_settings_warning"
682                          android:layout_width="wrap_content"
683                          android:layout_height="wrap_content"
684                          android:padding="8dp"
685                          android:text="@string/wifi_hidden_network_warning"
686                          android:textAppearance="?android:attr/textAppearanceSmall"
687                          android:visibility="gone"/>
688            </LinearLayout>
689        </LinearLayout>
690    </LinearLayout>
691</ScrollView>
692