blob: 6103fb990f3be3209da32e0d5982e47b6a6847b6 [file] [log] [blame]
Daisuke Miyakawad3669922010-08-27 10:04:08 -07001<?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<!-- All ids in this layout must be in wifi_dialog.xml -->
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070017<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:orientation="vertical"
Daisuke Miyakawad3669922010-08-27 10:04:08 -070019 android:layout_width="fill_parent"
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070020 android:layout_height="fill_parent">
Daisuke Miyakawad3669922010-08-27 10:04:08 -070021
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070022 <LinearLayout android:id="@+id/info"
23 android:layout_width="fill_parent"
24 android:layout_height="wrap_content"
25 android:orientation="vertical" />
Irfan Sheriffb3024fa2010-09-16 17:53:59 -070026
27 <LinearLayout android:id="@+id/setup_fields"
28 android:layout_width="fill_parent"
29 android:layout_height="wrap_content"
30 android:orientation="vertical"
31 android:visibility="gone">
32
33 <TextView
34 android:layout_width="fill_parent"
35 android:layout_height="wrap_content"
36 android:text="@string/wifi_network_setup" />
37
38 <Spinner android:id="@+id/network_setup"
39 android:layout_width="fill_parent"
40 android:layout_height="wrap_content"
41 android:prompt="@string/wifi_network_setup"
42 android:entries="@array/wifi_network_setup" />
43
44 </LinearLayout>
45
46 <LinearLayout android:id="@+id/wps_fields"
47 android:layout_width="fill_parent"
48 android:layout_height="wrap_content"
49 android:orientation="vertical"
50 android:visibility="gone">
51
52 <TextView
53 android:layout_width="fill_parent"
54 android:layout_height="wrap_content"
55 android:text="@string/wifi_wps_pin" />
56
57 <EditText android:id="@+id/wps_pin"
58 android:layout_width="fill_parent"
59 android:layout_height="wrap_content"
60 android:singleLine="true"
61 android:inputType="textPassword" />
62
63 </LinearLayout>
64
65
66
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070067 <LinearLayout android:id="@+id/type"
68 android:layout_width="fill_parent"
69 android:layout_height="wrap_content"
70 android:orientation="vertical"
71 android:visibility="gone">
Daisuke Miyakawad3669922010-08-27 10:04:08 -070072
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070073 <TextView android:layout_width="fill_parent"
74 android:layout_height="wrap_content"
75 android:text="@string/wifi_ssid" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070076
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070077 <EditText android:id="@+id/ssid"
78 android:layout_width="fill_parent"
79 android:layout_height="wrap_content"
80 android:singleLine="true"
81 android:inputType="textNoSuggestions" />
82
83 <TextView android:layout_width="fill_parent"
84 android:layout_height="wrap_content"
85 android:text="@string/wifi_security" />
86
87 <Spinner android:id="@+id/security"
Daisuke Miyakawad3669922010-08-27 10:04:08 -070088 android:layout_width="fill_parent"
89 android:layout_height="wrap_content"
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070090 android:prompt="@string/wifi_security"
91 android:entries="@array/wifi_security" />
92 </LinearLayout> <!-- android:id="@+id/type" -->
Daisuke Miyakawad3669922010-08-27 10:04:08 -070093
Irfan Sheriffb3024fa2010-09-16 17:53:59 -070094 <LinearLayout android:id="@+id/security_fields"
Daisuke Miyakawad3669922010-08-27 10:04:08 -070095 android:layout_width="fill_parent"
96 android:layout_height="wrap_content"
97 android:orientation="vertical"
98 android:visibility="gone">
99
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700100 <LinearLayout android:id="@+id/eap"
101 android:layout_width="fill_parent"
102 android:layout_height="wrap_content"
103 android:orientation="vertical"
104 android:visibility="gone">
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700105
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700106 <TextView
107 android:layout_width="fill_parent"
108 android:layout_height="wrap_content"
109 android:text="@string/wifi_eap_method" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700110
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700111 <Spinner android:id="@+id/method"
112 android:layout_width="fill_parent"
113 android:layout_height="wrap_content"
114 android:prompt="@string/wifi_eap_method"
115 android:entries="@array/wifi_eap_method" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700116
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700117 <TextView
118 android:layout_width="fill_parent"
119 android:layout_height="wrap_content"
120 android:text="@string/please_select_phase2" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700121
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700122 <Spinner android:id="@+id/phase2"
123 android:layout_width="fill_parent"
124 android:layout_height="wrap_content"
125 android:prompt="@string/please_select_phase2"
126 android:entries="@array/wifi_phase2_entries" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700127
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700128 <TextView
129 android:layout_width="fill_parent"
130 android:layout_height="wrap_content"
131 android:text="@string/wifi_eap_ca_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700132
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700133 <Spinner android:id="@+id/ca_cert"
134 android:layout_width="fill_parent"
135 android:layout_height="wrap_content"
136 android:prompt="@string/wifi_eap_ca_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700137
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700138 <TextView
139 android:layout_width="fill_parent"
140 android:layout_height="wrap_content"
141 android:text="@string/wifi_eap_user_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700142
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700143 <Spinner android:id="@+id/user_cert"
144 android:layout_width="fill_parent"
145 android:layout_height="wrap_content"
146 android:prompt="@string/wifi_eap_user_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700147
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700148 <TextView
149 android:layout_width="fill_parent"
150 android:layout_height="wrap_content"
151 android:text="@string/wifi_eap_identity" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700152
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700153 <EditText android:id="@+id/identity"
154 android:layout_width="fill_parent"
155 android:layout_height="wrap_content"
156 android:singleLine="true"
157 android:inputType="textNoSuggestions" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700158
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700159 <TextView
160 android:layout_width="fill_parent"
161 android:layout_height="wrap_content"
162 android:text="@string/wifi_eap_anonymous" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700163
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700164 <EditText android:id="@+id/anonymous"
165 android:layout_width="fill_parent"
166 android:layout_height="wrap_content"
167 android:singleLine="true"
168 android:inputType="textNoSuggestions" />
169 </LinearLayout> <!-- android:id="@+id/eap" -->
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700170
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700171 <TextView android:layout_width="fill_parent"
172 android:layout_height="wrap_content"
173 android:text="@string/wifi_password" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700174
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700175 <EditText android:id="@+id/password"
176 android:layout_width="fill_parent"
177 android:layout_height="wrap_content"
178 android:singleLine="true"
179 android:password="true" />
180
181 <CheckBox android:id="@+id/show_password"
182 android:layout_width="fill_parent"
183 android:layout_height="wrap_content"
184 android:text="@string/wifi_show_password" />
Irfan Sheriffb3024fa2010-09-16 17:53:59 -0700185 </LinearLayout> <!-- android:id="@+id/security_fields" -->
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700186
Irfan Sheriffc5361922010-09-22 16:09:35 -0700187 <LinearLayout android:id="@+id/proxy_settings_fields"
188 android:layout_width="fill_parent"
189 android:layout_height="wrap_content"
190 android:orientation="vertical"
191 android:visibility="gone">
192
193 <TextView android:layout_width="fill_parent"
194 android:layout_height="wrap_content"
195 android:text="@string/proxy_settings_title" />
196
197 <Spinner android:id="@+id/proxy_settings"
198 android:layout_width="fill_parent"
199 android:layout_height="wrap_content"
200 android:prompt="@string/proxy_settings_title"
201 android:entries="@array/wifi_proxy_settings" />
202 </LinearLayout>
203
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800204 <LinearLayout android:id="@+id/proxy_warning_limited_support"
205 android:layout_width="fill_parent"
206 android:layout_height="wrap_content"
207 android:orientation="vertical"
208 android:visibility="gone">
209
210 <!-- Dummy to enable right-justification of warning -->
211 <TextView
212 android:layout_width="fill_parent"
213 android:layout_height="wrap_content" />
214
215 <TextView
216 android:layout_width="fill_parent"
217 android:layout_height="wrap_content"
218 android:text="@string/proxy_warning_limited_support" />
219 </LinearLayout>
220
Irfan Sheriffc5361922010-09-22 16:09:35 -0700221 <LinearLayout android:id="@+id/proxy_fields"
222 android:layout_width="fill_parent"
223 android:layout_height="wrap_content"
224 android:orientation="vertical"
225 android:visibility="gone">
Irfan Sheriff086147c2011-03-01 15:01:42 -0800226
Irfan Sheriffc5361922010-09-22 16:09:35 -0700227 <TextView android:layout_width="fill_parent"
228 android:layout_height="wrap_content"
229 android:text="@string/proxy_hostname_label" />
230
231 <EditText android:id="@+id/proxy_hostname"
232 android:layout_width="fill_parent"
233 android:layout_height="wrap_content"
234 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800235 android:inputType="textNoSuggestions"
Irfan Sheriff086147c2011-03-01 15:01:42 -0800236 android:hint="@string/proxy_hostname_hint" />
Irfan Sheriffc5361922010-09-22 16:09:35 -0700237
238 <TextView android:layout_width="fill_parent"
239 android:layout_height="wrap_content"
240 android:text="@string/proxy_port_label" />
241
242 <EditText android:id="@+id/proxy_port"
243 android:layout_width="fill_parent"
244 android:layout_height="wrap_content"
245 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800246 android:inputType="number"
Irfan Sheriff086147c2011-03-01 15:01:42 -0800247 android:hint="@string/proxy_port_hint" />
Irfan Sheriffc5361922010-09-22 16:09:35 -0700248
249 <TextView android:layout_width="fill_parent"
250 android:layout_height="wrap_content"
251 android:text="@string/proxy_exclusionlist_label" />
252
253 <EditText android:id="@+id/proxy_exclusionlist"
254 android:layout_width="fill_parent"
255 android:layout_height="wrap_content"
256 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800257 android:inputType="textNoSuggestions"
Irfan Sheriff086147c2011-03-01 15:01:42 -0800258 android:hint="@string/proxy_exclusionlist_hint" />
Irfan Sheriffc5361922010-09-22 16:09:35 -0700259
260 </LinearLayout>
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800261
262 <LinearLayout android:id="@+id/ip_fields"
263 android:layout_width="fill_parent"
264 android:layout_height="wrap_content"
265 android:orientation="vertical"
266 android:visibility="gone">
267
268 <TextView
269 android:layout_width="fill_parent"
270 android:layout_height="wrap_content"
271 android:text="@string/wifi_ip_settings" />
272
273 <Spinner android:id="@+id/ip_settings"
274 android:layout_width="fill_parent"
275 android:layout_height="wrap_content"
276 android:prompt="@string/wifi_ip_settings"
277 android:entries="@array/wifi_ip_settings" />
278 </LinearLayout>
279
280 <LinearLayout android:id="@+id/staticip"
281 android:layout_width="fill_parent"
282 android:layout_height="wrap_content"
283 android:orientation="vertical"
284 android:visibility="gone">
285 <TextView
286 android:layout_width="fill_parent"
287 android:layout_height="wrap_content"
288 android:text="@string/wifi_ip_address" />
289
290 <EditText android:id="@+id/ipaddress"
291 android:layout_width="fill_parent"
292 android:layout_height="wrap_content"
293 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800294 android:hint="wifi_ip_address_hint"
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800295 android:inputType="textNoSuggestions" />
296
297 <TextView
298 android:layout_width="fill_parent"
299 android:layout_height="wrap_content"
300 android:text="@string/wifi_gateway" />
301
302 <EditText android:id="@+id/gateway"
303 android:layout_width="fill_parent"
304 android:layout_height="wrap_content"
305 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800306 android:hint="wifi_gateway_hint"
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800307 android:inputType="textNoSuggestions" />
308
309 <TextView
310 android:layout_width="fill_parent"
311 android:layout_height="wrap_content"
312 android:text="@string/wifi_network_prefix_length" />
313
314 <EditText android:id="@+id/network_prefix_length"
315 android:layout_width="fill_parent"
316 android:layout_height="wrap_content"
317 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800318 android:hint="wifi_network_prefix_length_hint"
319 android:inputType="number" />
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800320
321 <TextView
322 android:layout_width="fill_parent"
323 android:layout_height="wrap_content"
324 android:text="@string/wifi_dns1" />
325
326 <EditText android:id="@+id/dns1"
327 android:layout_width="fill_parent"
328 android:layout_height="wrap_content"
329 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800330 android:hint="wifi_dns1_hint"
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800331 android:inputType="textNoSuggestions" />
332
333 <TextView
334 android:layout_width="fill_parent"
335 android:layout_height="wrap_content"
336 android:text="@string/wifi_dns2" />
337
338 <EditText android:id="@+id/dns2"
339 android:layout_width="fill_parent"
340 android:layout_height="wrap_content"
341 android:singleLine="true"
Irfan Sheriff5d318682011-03-02 14:39:32 -0800342 android:hint="wifi_dns2_hint"
Irfan Sheriffd9c7dcf2011-02-09 15:26:25 -0800343 android:inputType="textNoSuggestions" />
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700344 </LinearLayout>
345
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700346</LinearLayout>