OSDN Git Service

am 28539897: am 8815f032: Merge "Always set right auth_type value in apn."
[android-x86/packages-apps-Settings.git] / res / layout / wifi_dialog.xml
1 <?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"
18          android:layout_width="300sp"
19          android:layout_height="wrap_content">
20
21     <LinearLayout
22             android:layout_width="match_parent"
23             android:layout_height="wrap_content"
24             android:padding="8dip"
25             android:orientation="vertical">
26
27         <LinearLayout android:id="@+id/info"
28                 android:layout_width="match_parent"
29                 android:layout_height="wrap_content"
30                 android:orientation="vertical" />
31
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">
37
38             <TextView
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" />
44
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" />
50
51         </LinearLayout>
52
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">
58
59             <TextView
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" />
65
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" />
71
72         </LinearLayout>
73
74
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">
80
81             <TextView
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" />
87
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" />
93
94             <TextView
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" />
100
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" />
106         </LinearLayout>
107
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">
113
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">
119
120                 <TextView
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" />
126
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" />
132
133                 <TextView
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" />
139
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" />
145
146                 <TextView
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" />
152
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" />
157
158                 <TextView
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" />
164
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" />
169
170                 <TextView
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" />
176
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" />
182
183                 <TextView
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" />
189
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" />
195             </LinearLayout>
196
197             <TextView
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" />
203
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" />
209
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" />
215         </LinearLayout>
216
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">
222
223             <TextView
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" />
229
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" />
235
236         </LinearLayout>
237
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">
243             <TextView
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" />
249
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" />
255
256             <TextView
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" />
262
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" />
268
269             <TextView
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" />
275
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" />
281
282             <TextView
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" />
288
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" />
294
295             <TextView
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" />
301
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" />
307
308         </LinearLayout>
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">
314
315             <TextView
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" />
321
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" />
327         </LinearLayout>
328
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">
334             <TextView
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" />
340
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" />
346             <TextView
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" />
352
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" />
358             <TextView
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" />
364
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" />
370
371         </LinearLayout>
372
373     </LinearLayout>
374 </ScrollView>