blob: 1914462bc2e50d377205ae5d3555dda0bed5170d [file] [log] [blame]
Chia-chi Yeh48090d42010-01-25 15:41:42 +08001<?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"
Salvador Martinez8bc3fa02018-03-29 21:29:30 -070018 android:id="@+id/dialog_scrollview"
Maurice Lamdf055a42016-05-10 12:45:53 -070019 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:fadeScrollbars="false"
22 android:scrollIndicators="top|bottom">
Chia-chi Yeh48090d42010-01-25 15:41:42 +080023
24 <LinearLayout
Yuchen Chang1bf069f2018-03-14 17:16:05 +080025 android:id="@+id/l_wifidialog"
Amith Yamasani77859df2012-05-29 15:49:29 -070026 android:layout_width="match_parent"
Chia-chi Yeh48090d42010-01-25 15:41:42 +080027 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -080028 android:orientation="vertical"
29 android:paddingBottom="8dip">
Chia-chi Yeh48090d42010-01-25 15:41:42 +080030
31 <LinearLayout android:id="@+id/info"
PauloftheWest6e264272014-10-02 06:22:47 -070032 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -080034 style="@style/wifi_section" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +080035
36 <LinearLayout android:id="@+id/type"
PauloftheWest6e264272014-10-02 06:22:47 -070037 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -080039 style="@style/wifi_section"
Chia-chi Yeh48090d42010-01-25 15:41:42 +080040 android:visibility="gone">
41
Amith Yamasani1c7e49b2010-12-08 11:12:23 -080042 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -070043 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 style="@style/wifi_item" >
Amith Yamasani1c7e49b2010-12-08 11:12:23 -080046 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -070047 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -080049 style="@style/wifi_item_label"
Fabrice Di Meglioeab91502012-09-11 15:17:40 -070050 android:text="@string/wifi_ssid"
51 android:textDirection="locale" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +080052
Arc Wangbaf002d2019-03-15 16:58:11 +080053 <androidx.constraintlayout.widget.ConstraintLayout
54 xmlns:app="http://schemas.android.com/apk/res-auto"
PauloftheWest6e264272014-10-02 06:22:47 -070055 android:layout_width="match_parent"
Arc Wangbaf002d2019-03-15 16:58:11 +080056 android:layout_height="wrap_content">
Johnson Lu5aef8972018-12-07 11:56:49 +080057 <EditText android:id="@+id/ssid"
Arc Wangbaf002d2019-03-15 16:58:11 +080058 android:layout_width="0dp"
Johnson Lu5aef8972018-12-07 11:56:49 +080059 android:layout_height="wrap_content"
Arc Wangbaf002d2019-03-15 16:58:11 +080060 app:layout_constraintStart_toStartOf="parent"
61 app:layout_constraintEnd_toStartOf="@+id/ssid_scanner_button"
Johnson Lu5aef8972018-12-07 11:56:49 +080062 style="@style/wifi_item_edit_content"
63 android:hint="@string/wifi_ssid_hint"
64 android:singleLine="true"
Arc Wangbaf002d2019-03-15 16:58:11 +080065 android:inputType="textNoSuggestions"/>
66
Johnson Lu5aef8972018-12-07 11:56:49 +080067 <ImageButton
68 android:id="@+id/ssid_scanner_button"
69 android:layout_width="wrap_content"
PauloftheWest6e264272014-10-02 06:22:47 -070070 android:layout_height="wrap_content"
Arc Wang3e5a1e62019-02-25 11:07:00 +080071 android:minWidth="@dimen/min_tap_target_size"
72 android:minHeight="@dimen/min_tap_target_size"
Arc Wangbaf002d2019-03-15 16:58:11 +080073 app:layout_constraintEnd_toEndOf="parent"
74 android:background="?android:attr/selectableItemBackground"
Arc Wangc8cd5d32019-01-03 18:36:27 +080075 android:src="@drawable/ic_scan_24dp"
Arc Wang70e35802019-03-06 12:29:45 +080076 android:contentDescription="@string/wifi_dpp_scan_qr_code"/>
Arc Wangbaf002d2019-03-15 16:58:11 +080077 </androidx.constraintlayout.widget.ConstraintLayout>
Fan Zhangcc070432017-06-05 15:50:00 -070078
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
Amith Yamasani1c7e49b2010-12-08 11:12:23 -080091 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +080092
PauloftheWest6e264272014-10-02 06:22:47 -070093 <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"
Sanket Padawe9235e672014-12-11 15:48:45 -0800100 android:minEms="16"
PauloftheWest6e264272014-10-02 06:22:47 -0700101 style="@style/wifi_item_label"
102 android:text="@string/wifi_security" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800103
Hai Shalom16381682018-11-13 16:37:24 -0800104 <!-- Entries are added dynamically to this spinner -->
105 <!-- See WifiConfigController.configureSecuritySpinner -->
PauloftheWest6e264272014-10-02 06:22:47 -0700106 <Spinner android:id="@+id/security"
107 android:layout_width="match_parent"
108 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700109 style="@style/wifi_item_spinner"
Hai Shalom16381682018-11-13 16:37:24 -0800110 android:prompt="@string/wifi_security" />
PauloftheWest6e264272014-10-02 06:22:47 -0700111 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800112 </LinearLayout>
113
Irfan Sheriffb3024fa2010-09-16 17:53:59 -0700114 <LinearLayout android:id="@+id/security_fields"
PauloftheWest6e264272014-10-02 06:22:47 -0700115 android:layout_width="match_parent"
116 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800117 style="@style/wifi_section"
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800118 android:visibility="gone">
119
120 <LinearLayout android:id="@+id/eap"
PauloftheWest6e264272014-10-02 06:22:47 -0700121 android:layout_width="match_parent"
122 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800123 style="@style/wifi_section"
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800124 android:visibility="gone">
125
Partha Nba7ee522012-01-17 18:33:03 -0800126 <LinearLayout android:id="@+id/l_method"
PauloftheWest6e264272014-10-02 06:22:47 -0700127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
Partha Nba7ee522012-01-17 18:33:03 -0800129 android:visibility="gone"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800130 style="@style/wifi_item" >
131 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700132 android:layout_width="wrap_content"
133 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800134 style="@style/wifi_item_label"
135 android:text="@string/wifi_eap_method" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800136
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800137 <Spinner android:id="@+id/method"
PauloftheWest6e264272014-10-02 06:22:47 -0700138 android:layout_width="match_parent"
139 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700140 style="@style/wifi_item_spinner"
govenliu41cdecc2019-07-10 17:29:16 +0800141 android:prompt="@string/wifi_eap_method" />
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800142 </LinearLayout>
Samuel Tanf827c922016-01-21 18:12:53 -0800143
Arc Wang2df3a3e2020-07-03 14:12:58 +0800144 <LinearLayout android:id="@+id/l_sim"
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/sim_card" />
154
155 <Spinner android:id="@+id/sim"
156 android:layout_width="match_parent"
157 android:layout_height="wrap_content"
158 style="@style/wifi_item_spinner"
159 android:prompt="@string/sim_card" />
160 </LinearLayout>
161
Partha Nba7ee522012-01-17 18:33:03 -0800162 <LinearLayout android:id="@+id/l_phase2"
PauloftheWest6e264272014-10-02 06:22:47 -0700163 android:layout_width="match_parent"
164 android:layout_height="wrap_content"
Partha Nba7ee522012-01-17 18:33:03 -0800165 android:visibility="gone"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800166 style="@style/wifi_item" >
167 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800170 style="@style/wifi_item_label"
171 android:text="@string/please_select_phase2" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800172
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800173 <Spinner android:id="@+id/phase2"
PauloftheWest6e264272014-10-02 06:22:47 -0700174 android:layout_width="match_parent"
175 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700176 style="@style/wifi_item_spinner"
Arc Wang41661fe2019-11-19 17:49:34 +0800177 android:prompt="@string/please_select_phase2" />
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800178 </LinearLayout>
Irfan Sheriffde3e5662010-06-02 15:25:13 -0700179
Partha Nba7ee522012-01-17 18:33:03 -0800180 <LinearLayout android:id="@+id/l_ca_cert"
PauloftheWest6e264272014-10-02 06:22:47 -0700181 android:layout_width="match_parent"
182 android:layout_height="wrap_content"
Partha Nba7ee522012-01-17 18:33:03 -0800183 android:visibility="gone"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800184 style="@style/wifi_item" >
185 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800188 style="@style/wifi_item_label"
189 android:text="@string/wifi_eap_ca_cert" />
Irfan Sheriffde3e5662010-06-02 15:25:13 -0700190
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800191 <Spinner android:id="@+id/ca_cert"
PauloftheWest6e264272014-10-02 06:22:47 -0700192 android:layout_width="match_parent"
193 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700194 style="@style/wifi_item_spinner"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800195 android:prompt="@string/wifi_eap_ca_cert" />
196 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800197
Jimmy Chen3612d3e2019-07-24 11:35:43 +0800198 <LinearLayout android:id="@+id/l_ocsp"
199 android:layout_width="match_parent"
200 android:layout_height="wrap_content"
201 android:visibility="gone"
202 style="@style/wifi_item" >
203 <TextView
204 android:layout_width="wrap_content"
205 android:layout_height="wrap_content"
206 style="@style/wifi_item_label"
207 android:text="@string/wifi_eap_ocsp" />
208
209 <Spinner android:id="@+id/ocsp"
210 android:layout_width="match_parent"
211 android:layout_height="wrap_content"
212 style="@style/wifi_item_spinner"
213 android:prompt="@string/wifi_eap_ocsp"
214 android:entries="@array/eap_ocsp_type" />
215 </LinearLayout>
216
Samuel Tand54bbd52016-01-29 13:26:17 -0800217 <LinearLayout android:id="@+id/l_domain"
218 android:layout_width="match_parent"
219 android:layout_height="wrap_content"
220 style="@style/wifi_item" >
221 <TextView
222 android:layout_width="wrap_content"
223 android:layout_height="wrap_content"
224 style="@style/wifi_item_label"
225 android:text="@string/wifi_eap_domain" />
226
227 <EditText android:id="@+id/domain"
228 android:layout_width="match_parent"
229 android:layout_height="wrap_content"
230 style="@style/wifi_item_edit_content"
231 android:singleLine="true"
232 android:inputType="textNoSuggestions" />
233 </LinearLayout>
234
Samuel Tan2b16cd32016-02-02 15:54:37 -0800235 <LinearLayout android:id="@+id/no_domain_warning"
236 android:layout_width="match_parent"
237 android:layout_height="wrap_content"
238 android:visibility="gone"
239 style="@style/wifi_item" >
240 <TextView
241 android:layout_width="wrap_content"
242 android:layout_height="wrap_content"
243 style="@style/wifi_item_warning"
244 android:text="@string/wifi_no_domain_warning" />
245 </LinearLayout>
246
Partha Nba7ee522012-01-17 18:33:03 -0800247 <LinearLayout android:id="@+id/l_user_cert"
PauloftheWest6e264272014-10-02 06:22:47 -0700248 android:layout_width="match_parent"
249 android:layout_height="wrap_content"
Partha Nba7ee522012-01-17 18:33:03 -0800250 android:visibility="gone"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800251 style="@style/wifi_item" >
252 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700253 android:layout_width="wrap_content"
254 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800255 style="@style/wifi_item_label"
256 android:text="@string/wifi_eap_user_cert" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800257
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800258 <Spinner android:id="@+id/user_cert"
PauloftheWest6e264272014-10-02 06:22:47 -0700259 android:layout_width="match_parent"
260 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700261 style="@style/wifi_item_spinner"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800262 android:prompt="@string/wifi_eap_user_cert" />
263 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800264
Arc Wang44fa9d52019-09-20 18:45:28 +0800265 <LinearLayout android:id="@+id/no_user_cert_warning"
266 android:layout_width="match_parent"
267 android:layout_height="wrap_content"
268 android:visibility="gone"
269 style="@style/wifi_item" >
270 <TextView
271 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"
273 style="@style/wifi_item_warning"
274 android:text="@string/wifi_no_user_cert_warning" />
275 </LinearLayout>
276
Partha Nba7ee522012-01-17 18:33:03 -0800277 <LinearLayout android:id="@+id/l_identity"
PauloftheWest6e264272014-10-02 06:22:47 -0700278 android:layout_width="match_parent"
279 android:layout_height="wrap_content"
Partha Nba7ee522012-01-17 18:33:03 -0800280 android:visibility="gone"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800281 style="@style/wifi_item" >
282 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700283 android:layout_width="wrap_content"
284 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800285 style="@style/wifi_item_label"
286 android:text="@string/wifi_eap_identity" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800287
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800288 <EditText android:id="@+id/identity"
PauloftheWest6e264272014-10-02 06:22:47 -0700289 android:layout_width="match_parent"
290 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800291 style="@style/wifi_item_edit_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800292 android:singleLine="true"
293 android:inputType="textNoSuggestions" />
294 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800295
Partha Nba7ee522012-01-17 18:33:03 -0800296 <LinearLayout android:id="@+id/l_anonymous"
PauloftheWest6e264272014-10-02 06:22:47 -0700297 android:layout_width="match_parent"
298 android:layout_height="wrap_content"
Partha Nba7ee522012-01-17 18:33:03 -0800299 android:visibility="gone"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800300 style="@style/wifi_item" >
301 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700302 android:layout_width="wrap_content"
303 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800304 style="@style/wifi_item_label"
305 android:text="@string/wifi_eap_anonymous" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800306
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800307 <EditText android:id="@+id/anonymous"
PauloftheWest6e264272014-10-02 06:22:47 -0700308 android:layout_width="match_parent"
309 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800310 style="@style/wifi_item_edit_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800311 android:singleLine="true"
312 android:inputType="textNoSuggestions" />
313 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800314 </LinearLayout>
315
Irfan Sherifff2e086b2013-01-17 09:47:45 -0800316 <LinearLayout android:id="@+id/password_layout"
PauloftheWest6e264272014-10-02 06:22:47 -0700317 android:layout_width="match_parent"
318 android:layout_height="wrap_content"
319 style="@style/wifi_item" >
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800320 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700321 android:layout_width="wrap_content"
322 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800323 style="@style/wifi_item_label"
324 android:text="@string/wifi_password" />
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800325
Arc Wang838cbbf2019-06-13 15:34:45 +0800326 <EditText android:id="@+id/password"
327 android:layout_width="match_parent"
PauloftheWest6e264272014-10-02 06:22:47 -0700328 android:layout_height="wrap_content"
Arc Wang838cbbf2019-06-13 15:34:45 +0800329 style="@style/wifi_item_edit_content"
330 android:singleLine="true"
331 android:password="true"/>
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800332 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800333
Irfan Sherifff2e086b2013-01-17 09:47:45 -0800334 <LinearLayout android:id="@+id/show_password_layout"
PauloftheWest6e264272014-10-02 06:22:47 -0700335 android:layout_width="match_parent"
336 android:layout_height="wrap_content"
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800337 style="@style/wifi_item" >
338 <!-- Dummy to enable right-justification of checkbox -->
339 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700340 android:layout_width="wrap_content"
341 android:layout_height="wrap_content"
342 style="@style/wifi_item_label" />
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800343
344 <CheckBox android:id="@+id/show_password"
PauloftheWest6e264272014-10-02 06:22:47 -0700345 android:layout_width="match_parent"
346 android:layout_height="wrap_content"
347 style="@style/wifi_item_content"
PauloftheWest6e264272014-10-02 06:22:47 -0700348 android:text="@string/wifi_show_password" />
Amith Yamasani1c7e49b2010-12-08 11:12:23 -0800349 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800350 </LinearLayout>
Irfan Sherifff027ce52010-08-30 17:03:28 -0700351
Isaac Levyd621e092011-08-16 16:11:44 -0700352 <LinearLayout android:id="@+id/wifi_advanced_toggle"
PauloftheWest6e264272014-10-02 06:22:47 -0700353 android:layout_width="match_parent"
354 android:layout_height="wrap_content"
355 style="@style/wifi_item"
Maurice Lamdf055a42016-05-10 12:45:53 -0700356 android:paddingBottom="4dp"
govenliu116060e2019-10-17 15:57:57 +0800357 android:importantForAccessibility="no"
PauloftheWest6e264272014-10-02 06:22:47 -0700358 android:visibility="gone">
Isaac Levyd621e092011-08-16 16:11:44 -0700359 <CheckBox android:id="@+id/wifi_advanced_togglebox"
PauloftheWest6e264272014-10-02 06:22:47 -0700360 android:layout_width="match_parent"
361 android:layout_height="wrap_content"
Maurice Lama8b824d2015-02-12 14:53:59 -0800362 style="@style/wifi_advanced_toggle"
govenliu116060e2019-10-17 15:57:57 +0800363 android:importantForAccessibility="yes"
364 android:contentDescription="@string/wifi_advanced_toggle_description"
Isaac Levyd621e092011-08-16 16:11:44 -0700365 android:text="@string/wifi_show_advanced" />
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800366 </LinearLayout>
367
Isaac Levyd621e092011-08-16 16:11:44 -0700368 <LinearLayout android:id="@+id/wifi_advanced_fields"
369 android:layout_width="match_parent"
370 android:layout_height="wrap_content"
371 android:orientation="vertical"
372 android:visibility="gone">
Isaac Levyd621e092011-08-16 16:11:44 -0700373
govenliu712df892019-09-18 16:56:22 +0800374 <LinearLayout android:id="@+id/hidden_settings_field"
375 android:layout_width="match_parent"
376 android:layout_height="wrap_content"
377 android:visibility="gone"
378 style="@style/wifi_item">
379
380 <TextView android:id="@+id/hidden_settings_title"
381 android:layout_width="wrap_content"
382 android:layout_height="wrap_content"
383 style="@style/wifi_item_label"
384 android:text="@string/wifi_hidden_network" />
385
386 <Spinner android:id="@+id/hidden_settings"
387 android:layout_width="match_parent"
388 android:layout_height="wrap_content"
389 style="@style/wifi_item_spinner"
390 android:prompt="@string/wifi_hidden_network"
391 android:entries="@array/wifi_hidden_entries"/>
392
393 <TextView android:id="@+id/hidden_settings_warning"
394 android:layout_width="wrap_content"
395 android:layout_height="wrap_content"
396 android:padding="8dp"
397 android:text="@string/wifi_hidden_network_warning"
398 android:textAppearance="?android:attr/textAppearanceSmall"
399 android:visibility="gone"/>
400 </LinearLayout>
401
jackqdyulei261c29c2018-01-04 14:55:13 -0800402 <LinearLayout android:id="@+id/metered_settings_fields"
403 android:layout_width="match_parent"
404 android:layout_height="wrap_content"
405 style="@style/wifi_item">
406
407 <TextView android:id="@+id/metered_settings_title"
408 android:layout_width="wrap_content"
409 android:layout_height="wrap_content"
410 style="@style/wifi_item_label"
411 android:text="@string/data_usage_metered_yes" />
412
413 <Spinner android:id="@+id/metered_settings"
414 android:layout_width="match_parent"
415 android:layout_height="wrap_content"
416 style="@style/wifi_item_spinner"
417 android:prompt="@string/data_usage_metered_yes"
418 android:entries="@array/wifi_metered_entries"/>
419
420 </LinearLayout>
421
Isaac Levyd621e092011-08-16 16:11:44 -0700422 <LinearLayout android:id="@+id/proxy_settings_fields"
PauloftheWest6e264272014-10-02 06:22:47 -0700423 android:layout_width="match_parent"
424 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700425 style="@style/wifi_item"
426 android:visibility="gone">
427
428 <TextView android:id="@+id/proxy_settings_title"
PauloftheWest6e264272014-10-02 06:22:47 -0700429 android:layout_width="wrap_content"
430 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700431 style="@style/wifi_item_label"
432 android:text="@string/proxy_settings_title" />
433
434 <Spinner android:id="@+id/proxy_settings"
PauloftheWest6e264272014-10-02 06:22:47 -0700435 android:layout_width="match_parent"
436 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700437 style="@style/wifi_item_spinner"
Isaac Levyd621e092011-08-16 16:11:44 -0700438 android:prompt="@string/proxy_settings_title"
439 android:entries="@array/wifi_proxy_settings" />
Jason Monk070f3562013-11-05 11:54:48 -0500440
Isaac Levyd621e092011-08-16 16:11:44 -0700441 </LinearLayout>
442
443 <LinearLayout android:id="@+id/proxy_warning_limited_support"
PauloftheWest6e264272014-10-02 06:22:47 -0700444 android:layout_width="match_parent"
445 android:layout_height="wrap_content"
446 style="@style/wifi_item"
447 android:visibility="gone">
448 <!-- Dummy to enable right-justification of warning -->
449 <TextView
450 android:layout_width="wrap_content"
451 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700452 style="@style/wifi_item_label" />
453
PauloftheWest6e264272014-10-02 06:22:47 -0700454 <TextView
455 android:layout_width="match_parent"
456 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700457 style="@style/wifi_item_content"
458 android:text="@string/proxy_warning_limited_support" />
459 </LinearLayout>
460
Jason Monk0485b7c2014-05-08 13:44:07 -0400461 <LinearLayout android:id="@+id/proxy_pac_field"
PauloftheWest6e264272014-10-02 06:22:47 -0700462 android:layout_width="match_parent"
463 android:layout_height="wrap_content"
Jason Monk0485b7c2014-05-08 13:44:07 -0400464 style="@style/wifi_section"
465 android:visibility="gone">
Samuel Tanf827c922016-01-21 18:12:53 -0800466 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -0700467 android:layout_width="match_parent"
468 android:layout_height="wrap_content"
469 style="@style/wifi_item">
Jason Monk0485b7c2014-05-08 13:44:07 -0400470 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700471 android:layout_width="wrap_content"
472 android:layout_height="wrap_content"
Jason Monk0485b7c2014-05-08 13:44:07 -0400473 style="@style/wifi_item_label"
474 android:text="@string/proxy_url_title" />
475
476 <EditText android:id="@+id/proxy_pac"
PauloftheWest6e264272014-10-02 06:22:47 -0700477 android:layout_width="match_parent"
478 android:layout_height="wrap_content"
Arc Wanga001e422020-02-27 18:36:20 +0800479 style="@style/wifi_item_edit_content"
Jason Monk0485b7c2014-05-08 13:44:07 -0400480 android:hint="@string/proxy_url_hint"
481 android:inputType="textNoSuggestions"
482 android:singleLine="true"/>
483 </LinearLayout>
484 </LinearLayout>
Isaac Levyd621e092011-08-16 16:11:44 -0700485 <LinearLayout android:id="@+id/proxy_fields"
PauloftheWest6e264272014-10-02 06:22:47 -0700486 android:layout_width="match_parent"
487 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700488 style="@style/wifi_section"
489 android:visibility="gone">
490
PauloftheWest6e264272014-10-02 06:22:47 -0700491 <LinearLayout
492 android:layout_width="match_parent"
493 android:layout_height="wrap_content"
494 style="@style/wifi_item">
Isaac Levyd621e092011-08-16 16:11:44 -0700495 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700496 android:layout_width="wrap_content"
497 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700498 style="@style/wifi_item_label"
499 android:text="@string/proxy_hostname_label" />
500
501 <EditText android:id="@+id/proxy_hostname"
PauloftheWest6e264272014-10-02 06:22:47 -0700502 android:layout_width="match_parent"
503 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800504 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700505 android:hint="@string/proxy_hostname_hint"
506 android:inputType="textNoSuggestions"
507 android:singleLine="true" />
508 </LinearLayout>
PauloftheWest6e264272014-10-02 06:22:47 -0700509 <LinearLayout
510 android:layout_width="match_parent"
511 android:layout_height="wrap_content"
512 style="@style/wifi_item">
Isaac Levyd621e092011-08-16 16:11:44 -0700513 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700514 android:layout_width="wrap_content"
515 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700516 style="@style/wifi_item_label"
517 android:text="@string/proxy_port_label" />
518
519 <EditText android:id="@+id/proxy_port"
PauloftheWest6e264272014-10-02 06:22:47 -0700520 android:layout_width="match_parent"
521 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800522 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700523 android:hint="@string/proxy_port_hint"
524 android:inputType="number"
525 android:singleLine="true" />
526 </LinearLayout>
PauloftheWest6e264272014-10-02 06:22:47 -0700527 <LinearLayout
528 android:layout_width="match_parent"
529 android:layout_height="wrap_content"
530 style="@style/wifi_item">
Isaac Levyd621e092011-08-16 16:11:44 -0700531 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700532 android:layout_width="wrap_content"
533 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700534 style="@style/wifi_item_label"
535 android:text="@string/proxy_exclusionlist_label" />
536
537 <EditText android:id="@+id/proxy_exclusionlist"
PauloftheWest6e264272014-10-02 06:22:47 -0700538 android:layout_width="match_parent"
539 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800540 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700541 android:hint="@string/proxy_exclusionlist_hint"
542 android:inputType="textNoSuggestions"
543 android:singleLine="true" />
544 </LinearLayout>
545 </LinearLayout>
546
547 <LinearLayout android:id="@+id/ip_fields"
PauloftheWest6e264272014-10-02 06:22:47 -0700548 android:layout_width="match_parent"
549 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700550 style="@style/wifi_item"
551 android:visibility="gone">
552
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800553 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700554 android:layout_width="wrap_content"
555 android:layout_height="wrap_content"
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800556 style="@style/wifi_item_label"
Isaac Levyd621e092011-08-16 16:11:44 -0700557 android:text="@string/wifi_ip_settings" />
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800558
Isaac Levyd621e092011-08-16 16:11:44 -0700559 <Spinner android:id="@+id/ip_settings"
PauloftheWest6e264272014-10-02 06:22:47 -0700560 android:layout_width="match_parent"
561 android:layout_height="wrap_content"
Maurice Lamdf055a42016-05-10 12:45:53 -0700562 style="@style/wifi_item_spinner"
Isaac Levyd621e092011-08-16 16:11:44 -0700563 android:prompt="@string/wifi_ip_settings"
564 android:entries="@array/wifi_ip_settings" />
565
566 </LinearLayout>
567
568 <LinearLayout android:id="@+id/staticip"
PauloftheWest6e264272014-10-02 06:22:47 -0700569 android:layout_width="match_parent"
570 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700571 style="@style/wifi_section"
572 android:visibility="gone">
573 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -0700574 android:layout_width="match_parent"
575 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700576 style="@style/wifi_item" >
577 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700578 android:layout_width="wrap_content"
579 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700580 style="@style/wifi_item_label"
581 android:text="@string/wifi_ip_address" />
582
583 <EditText android:id="@+id/ipaddress"
PauloftheWest6e264272014-10-02 06:22:47 -0700584 android:layout_width="match_parent"
585 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800586 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700587 android:singleLine="true"
588 android:hint="@string/wifi_ip_address_hint"
589 android:inputType="textNoSuggestions" />
590 </LinearLayout>
591
592 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -0700593 android:layout_width="match_parent"
594 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700595 style="@style/wifi_item" >
596 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700597 android:layout_width="wrap_content"
598 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700599 style="@style/wifi_item_label"
600 android:text="@string/wifi_gateway" />
601
602 <EditText android:id="@+id/gateway"
PauloftheWest6e264272014-10-02 06:22:47 -0700603 android:layout_width="match_parent"
604 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800605 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700606 android:singleLine="true"
607 android:hint="@string/wifi_gateway_hint"
608 android:inputType="textNoSuggestions" />
609 </LinearLayout>
610
611 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -0700612 android:layout_width="match_parent"
613 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700614 style="@style/wifi_item" >
615 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700616 android:layout_width="wrap_content"
617 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700618 style="@style/wifi_item_label"
619 android:text="@string/wifi_network_prefix_length" />
620
621 <EditText android:id="@+id/network_prefix_length"
PauloftheWest6e264272014-10-02 06:22:47 -0700622 android:layout_width="match_parent"
623 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800624 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700625 android:singleLine="true"
626 android:hint="@string/wifi_network_prefix_length_hint"
627 android:inputType="number" />
628 </LinearLayout>
629 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -0700630 android:layout_width="match_parent"
631 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700632 style="@style/wifi_item" >
633 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700634 android:layout_width="wrap_content"
635 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700636 style="@style/wifi_item_label"
637 android:text="@string/wifi_dns1" />
638
639 <EditText android:id="@+id/dns1"
PauloftheWest6e264272014-10-02 06:22:47 -0700640 android:layout_width="match_parent"
641 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800642 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700643 android:singleLine="true"
644 android:hint="@string/wifi_dns1_hint"
645 android:inputType="textNoSuggestions" />
646 </LinearLayout>
647
648 <LinearLayout
PauloftheWest6e264272014-10-02 06:22:47 -0700649 android:layout_width="match_parent"
650 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700651 style="@style/wifi_item" >
652 <TextView
PauloftheWest6e264272014-10-02 06:22:47 -0700653 android:layout_width="wrap_content"
654 android:layout_height="wrap_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700655 style="@style/wifi_item_label"
656 android:text="@string/wifi_dns2" />
657
658 <EditText android:id="@+id/dns2"
PauloftheWest6e264272014-10-02 06:22:47 -0700659 android:layout_width="match_parent"
660 android:layout_height="wrap_content"
Jeff Sharkeyfa6587d2013-02-07 15:45:29 -0800661 style="@style/wifi_item_edit_content"
Isaac Levyd621e092011-08-16 16:11:44 -0700662 android:singleLine="true"
663 android:hint="@string/wifi_dns2_hint"
664 android:inputType="textNoSuggestions" />
665 </LinearLayout>
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800666 </LinearLayout>
Bartosz Fabianowski1058c0c2015-12-16 17:15:25 +0100667
govenliu497c1e32020-02-24 18:38:57 +0800668 <LinearLayout android:id="@+id/privacy_settings_fields"
669 android:layout_width="match_parent"
670 android:layout_height="wrap_content"
671 style="@style/wifi_item"
672 android:visibility="gone">
673
674 <TextView android:id="@+id/privacy_settings_title"
675 android:layout_width="wrap_content"
676 android:layout_height="wrap_content"
677 style="@style/wifi_item_label"
678 android:text="@string/wifi_privacy_settings" />
679
680 <Spinner android:id="@+id/privacy_settings"
681 android:layout_width="match_parent"
682 android:layout_height="wrap_content"
683 style="@style/wifi_item_spinner"
684 android:prompt="@string/wifi_privacy_settings"
685 android:entries="@array/wifi_privacy_entries"/>
686 </LinearLayout>
687
Bartosz Fabianowski1058c0c2015-12-16 17:15:25 +0100688 <LinearLayout
689 android:layout_width="match_parent"
690 android:layout_height="wrap_content"
691 style="@style/wifi_section">
692 <LinearLayout
693 android:layout_width="match_parent"
694 android:layout_height="wrap_content"
695 style="@style/wifi_item" >
696 <CheckBox android:id="@+id/shared"
697 android:layout_width="match_parent"
698 android:layout_height="wrap_content"
699 style="@style/wifi_item_content"
700 android:textSize="14sp"
701 android:text="@string/wifi_shared"
702 android:checked="true" />
703 </LinearLayout>
704 </LinearLayout>
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800705 </LinearLayout>
Chia-chi Yeh48090d42010-01-25 15:41:42 +0800706 </LinearLayout>
707</ScrollView>