1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
17 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="300sp"
19 android:layout_height="wrap_content">
22 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
24 android:padding="8dip"
25 android:orientation="vertical">
27 <LinearLayout android:id="@+id/info"
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:orientation="vertical" />
32 <LinearLayout android:id="@+id/setup_fields"
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:orientation="vertical"
36 android:visibility="gone">
39 style="?android:attr/textAppearanceSmall"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 android:layout_marginTop="8dip"
43 android:text="@string/wifi_network_setup" />
45 <Spinner android:id="@+id/network_setup"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:prompt="@string/wifi_network_setup"
49 android:entries="@array/wifi_network_setup" />
53 <LinearLayout android:id="@+id/wps_fields"
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:orientation="vertical"
57 android:visibility="gone">
60 style="?android:attr/textAppearanceSmall"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 android:layout_marginTop="8dip"
64 android:text="@string/wifi_wps_pin" />
66 <EditText android:id="@+id/wps_pin"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:singleLine="true"
70 android:inputType="textPassword" />
75 <LinearLayout android:id="@+id/type"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:orientation="vertical"
79 android:visibility="gone">
82 style="?android:attr/textAppearanceSmall"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_marginTop="8dip"
86 android:text="@string/wifi_ssid" />
88 <EditText android:id="@+id/ssid"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:singleLine="true"
92 android:inputType="textNoSuggestions" />
95 style="?android:attr/textAppearanceSmall"
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"
98 android:layout_marginTop="8dip"
99 android:text="@string/wifi_security" />
101 <Spinner android:id="@+id/security"
102 android:layout_width="match_parent"
103 android:layout_height="wrap_content"
104 android:prompt="@string/wifi_security"
105 android:entries="@array/wifi_security" />
108 <LinearLayout android:id="@+id/security_fields"
109 android:layout_width="match_parent"
110 android:layout_height="wrap_content"
111 android:orientation="vertical"
112 android:visibility="gone">
114 <LinearLayout android:id="@+id/eap"
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content"
117 android:orientation="vertical"
118 android:visibility="gone">
121 style="?android:attr/textAppearanceSmall"
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
124 android:layout_marginTop="4dip"
125 android:text="@string/wifi_eap_method" />
127 <Spinner android:id="@+id/method"
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:prompt="@string/wifi_eap_method"
131 android:entries="@array/wifi_eap_method" />
134 style="?android:attr/textAppearanceSmall"
135 android:layout_width="fill_parent"
136 android:layout_height="wrap_content"
137 android:layout_marginTop="8dip"
138 android:text="@string/please_select_phase2" />
140 <Spinner android:id="@+id/phase2"
141 android:layout_width="fill_parent"
142 android:layout_height="wrap_content"
143 android:prompt="@string/please_select_phase2"
144 android:entries="@array/wifi_phase2_entries" />
147 style="?android:attr/textAppearanceSmall"
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:layout_marginTop="4dip"
151 android:text="@string/wifi_eap_ca_cert" />
153 <Spinner android:id="@+id/ca_cert"
154 android:layout_width="match_parent"
155 android:layout_height="wrap_content"
156 android:prompt="@string/wifi_eap_ca_cert" />
159 style="?android:attr/textAppearanceSmall"
160 android:layout_width="match_parent"
161 android:layout_height="wrap_content"
162 android:layout_marginTop="4dip"
163 android:text="@string/wifi_eap_user_cert" />
165 <Spinner android:id="@+id/user_cert"
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content"
168 android:prompt="@string/wifi_eap_user_cert" />
171 style="?android:attr/textAppearanceSmall"
172 android:layout_width="match_parent"
173 android:layout_height="wrap_content"
174 android:layout_marginTop="4dip"
175 android:text="@string/wifi_eap_identity" />
177 <EditText android:id="@+id/identity"
178 android:layout_width="match_parent"
179 android:layout_height="wrap_content"
180 android:singleLine="true"
181 android:inputType="textNoSuggestions" />
184 style="?android:attr/textAppearanceSmall"
185 android:layout_width="match_parent"
186 android:layout_height="wrap_content"
187 android:layout_marginTop="4dip"
188 android:text="@string/wifi_eap_anonymous" />
190 <EditText android:id="@+id/anonymous"
191 android:layout_width="match_parent"
192 android:layout_height="wrap_content"
193 android:singleLine="true"
194 android:inputType="textNoSuggestions" />
198 style="?android:attr/textAppearanceSmall"
199 android:layout_width="match_parent"
200 android:layout_height="wrap_content"
201 android:layout_marginTop="4dip"
202 android:text="@string/wifi_password" />
204 <EditText android:id="@+id/password"
205 android:layout_width="match_parent"
206 android:layout_height="wrap_content"
207 android:singleLine="true"
208 android:password="true" />
210 <CheckBox android:id="@+id/show_password"
211 style="?android:attr/textAppearanceSmall"
212 android:layout_width="match_parent"
213 android:layout_height="wrap_content"
214 android:text="@string/wifi_show_password" />
217 <LinearLayout android:id="@+id/ip_fields"
218 android:layout_width="match_parent"
219 android:layout_height="wrap_content"
220 android:orientation="vertical"
221 android:visibility="gone">
224 style="?android:attr/textAppearanceSmall"
225 android:layout_width="match_parent"
226 android:layout_height="wrap_content"
227 android:layout_marginTop="8dip"
228 android:text="@string/wifi_ip_settings" />
230 <Spinner android:id="@+id/ip_settings"
231 android:layout_width="match_parent"
232 android:layout_height="wrap_content"
233 android:prompt="@string/wifi_ip_settings"
234 android:entries="@array/wifi_ip_settings" />
238 <LinearLayout android:id="@+id/staticip"
239 android:layout_width="match_parent"
240 android:layout_height="wrap_content"
241 android:orientation="vertical"
242 android:visibility="gone">
244 style="?android:attr/textAppearanceSmall"
245 android:layout_width="match_parent"
246 android:layout_height="wrap_content"
247 android:layout_marginTop="8dip"
248 android:text="@string/wifi_ip_address" />
250 <EditText android:id="@+id/ipaddress"
251 android:layout_width="match_parent"
252 android:layout_height="wrap_content"
253 android:singleLine="true"
254 android:inputType="textNoSuggestions" />
257 style="?android:attr/textAppearanceSmall"
258 android:layout_width="match_parent"
259 android:layout_height="wrap_content"
260 android:layout_marginTop="8dip"
261 android:text="@string/wifi_gateway" />
263 <EditText android:id="@+id/gateway"
264 android:layout_width="match_parent"
265 android:layout_height="wrap_content"
266 android:singleLine="true"
267 android:inputType="textNoSuggestions" />
270 style="?android:attr/textAppearanceSmall"
271 android:layout_width="match_parent"
272 android:layout_height="wrap_content"
273 android:layout_marginTop="8dip"
274 android:text="@string/wifi_network_prefix_length" />
276 <EditText android:id="@+id/network_prefix_length"
277 android:layout_width="match_parent"
278 android:layout_height="wrap_content"
279 android:singleLine="true"
280 android:inputType="textNoSuggestions" />
283 style="?android:attr/textAppearanceSmall"
284 android:layout_width="match_parent"
285 android:layout_height="wrap_content"
286 android:layout_marginTop="8dip"
287 android:text="@string/wifi_dns1" />
289 <EditText android:id="@+id/dns1"
290 android:layout_width="match_parent"
291 android:layout_height="wrap_content"
292 android:singleLine="true"
293 android:inputType="textNoSuggestions" />
296 style="?android:attr/textAppearanceSmall"
297 android:layout_width="match_parent"
298 android:layout_height="wrap_content"
299 android:layout_marginTop="8dip"
300 android:text="@string/wifi_dns2" />
302 <EditText android:id="@+id/dns2"
303 android:layout_width="match_parent"
304 android:layout_height="wrap_content"
305 android:singleLine="true"
306 android:inputType="textNoSuggestions" />
309 <LinearLayout android:id="@+id/proxy_settings_fields"
310 android:layout_width="match_parent"
311 android:layout_height="wrap_content"
312 android:orientation="vertical"
313 android:visibility="gone">
316 style="?android:attr/textAppearanceSmall"
317 android:layout_width="match_parent"
318 android:layout_height="wrap_content"
319 android:layout_marginTop="8dip"
320 android:text="@string/proxy_settings_title" />
322 <Spinner android:id="@+id/proxy_settings"
323 android:layout_width="match_parent"
324 android:layout_height="wrap_content"
325 android:prompt="@string/proxy_settings_title"
326 android:entries="@array/wifi_proxy_settings" />
329 <LinearLayout android:id="@+id/proxy_fields"
330 android:layout_width="match_parent"
331 android:layout_height="wrap_content"
332 android:orientation="vertical"
333 android:visibility="gone">
335 style="?android:attr/textAppearanceSmall"
336 android:layout_width="match_parent"
337 android:layout_height="wrap_content"
338 android:layout_marginTop="8dip"
339 android:text="@string/proxy_hostname_label" />
341 <EditText android:id="@+id/proxy_hostname"
342 android:layout_width="match_parent"
343 android:layout_height="wrap_content"
344 android:singleLine="true"
345 android:inputType="textNoSuggestions" />
347 style="?android:attr/textAppearanceSmall"
348 android:layout_width="match_parent"
349 android:layout_height="wrap_content"
350 android:layout_marginTop="8dip"
351 android:text="@string/proxy_port_label" />
353 <EditText android:id="@+id/proxy_port"
354 android:layout_width="match_parent"
355 android:layout_height="wrap_content"
356 android:singleLine="true"
357 android:inputType="textNoSuggestions" />
359 style="?android:attr/textAppearanceSmall"
360 android:layout_width="match_parent"
361 android:layout_height="wrap_content"
362 android:layout_marginTop="8dip"
363 android:text="@string/proxy_exclusionlist_label" />
365 <EditText android:id="@+id/proxy_exclusionlist"
366 android:layout_width="match_parent"
367 android:layout_height="wrap_content"
368 android:singleLine="true"
369 android:inputType="textNoSuggestions" />