blob: 9c1844b5e71b54efd67b2bc479eb8559a1e2f013 [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 Sheriffb3024fa2010-09-16 17:53:59 -0700187 <LinearLayout android:id="@+id/ip_fields"
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700188 android:layout_width="fill_parent"
189 android:layout_height="wrap_content"
190 android:orientation="vertical"
191 android:visibility="gone">
192
193 <TextView
194 android:layout_width="fill_parent"
195 android:layout_height="wrap_content"
196 android:text="@string/wifi_ip_settings" />
197
Irfan Sheriffb3024fa2010-09-16 17:53:59 -0700198 <Spinner android:id="@+id/ip_settings"
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700199 android:layout_width="fill_parent"
200 android:layout_height="wrap_content"
201 android:prompt="@string/wifi_ip_settings"
202 android:entries="@array/wifi_ip_settings" />
203 </LinearLayout>
204
205 <LinearLayout android:id="@+id/staticip"
206 android:layout_width="fill_parent"
207 android:layout_height="wrap_content"
208 android:orientation="vertical"
209 android:visibility="gone">
210 <TextView
211 android:layout_width="fill_parent"
212 android:layout_height="wrap_content"
213 android:text="@string/wifi_ip_address" />
214
215 <EditText android:id="@+id/ipaddress"
216 android:layout_width="fill_parent"
217 android:layout_height="wrap_content"
218 android:singleLine="true"
219 android:inputType="textNoSuggestions" />
220
221 <TextView
222 android:layout_width="fill_parent"
223 android:layout_height="wrap_content"
224 android:text="@string/wifi_gateway" />
225
226 <EditText android:id="@+id/gateway"
227 android:layout_width="fill_parent"
228 android:layout_height="wrap_content"
229 android:singleLine="true"
230 android:inputType="textNoSuggestions" />
231
232 <TextView
233 android:layout_width="fill_parent"
234 android:layout_height="wrap_content"
Irfan Sheriff34ce3432010-10-05 16:14:26 -0700235 android:text="@string/wifi_network_prefix_length" />
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700236
Irfan Sheriff34ce3432010-10-05 16:14:26 -0700237 <EditText android:id="@+id/network_prefix_length"
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700238 android:layout_width="fill_parent"
239 android:layout_height="wrap_content"
240 android:singleLine="true"
241 android:inputType="textNoSuggestions" />
242
243 <TextView
244 android:layout_width="fill_parent"
245 android:layout_height="wrap_content"
246 android:text="@string/wifi_dns1" />
247
248 <EditText android:id="@+id/dns1"
249 android:layout_width="fill_parent"
250 android:layout_height="wrap_content"
251 android:singleLine="true"
252 android:inputType="textNoSuggestions" />
253
254 <TextView
255 android:layout_width="fill_parent"
256 android:layout_height="wrap_content"
257 android:text="@string/wifi_dns2" />
258
259 <EditText android:id="@+id/dns2"
260 android:layout_width="fill_parent"
261 android:layout_height="wrap_content"
262 android:singleLine="true"
263 android:inputType="textNoSuggestions" />
Irfan Sheriffc5361922010-09-22 16:09:35 -0700264
265 <LinearLayout android:id="@+id/proxy_settings_fields"
266 android:layout_width="fill_parent"
267 android:layout_height="wrap_content"
268 android:orientation="vertical"
269 android:visibility="gone">
270
271 <TextView android:layout_width="fill_parent"
272 android:layout_height="wrap_content"
273 android:text="@string/proxy_settings_title" />
274
275 <Spinner android:id="@+id/proxy_settings"
276 android:layout_width="fill_parent"
277 android:layout_height="wrap_content"
278 android:prompt="@string/proxy_settings_title"
279 android:entries="@array/wifi_proxy_settings" />
280 </LinearLayout>
281
282 <LinearLayout android:id="@+id/proxy_fields"
283 android:layout_width="fill_parent"
284 android:layout_height="wrap_content"
285 android:orientation="vertical"
286 android:visibility="gone">
287 <TextView android:layout_width="fill_parent"
288 android:layout_height="wrap_content"
289 android:text="@string/proxy_hostname_label" />
290
291 <EditText android:id="@+id/proxy_hostname"
292 android:layout_width="fill_parent"
293 android:layout_height="wrap_content"
294 android:singleLine="true"
295 android:inputType="textNoSuggestions" />
296
297 <TextView android:layout_width="fill_parent"
298 android:layout_height="wrap_content"
299 android:text="@string/proxy_port_label" />
300
301 <EditText android:id="@+id/proxy_port"
302 android:layout_width="fill_parent"
303 android:layout_height="wrap_content"
304 android:singleLine="true"
305 android:inputType="textNoSuggestions" />
306
307 <TextView android:layout_width="fill_parent"
308 android:layout_height="wrap_content"
309 android:text="@string/proxy_exclusionlist_label" />
310
311 <EditText android:id="@+id/proxy_exclusionlist"
312 android:layout_width="fill_parent"
313 android:layout_height="wrap_content"
314 android:singleLine="true"
315 android:inputType="textNoSuggestions" />
316
317 </LinearLayout>
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700318 </LinearLayout>
319
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700320</LinearLayout>