blob: b7f183ffd33df23878bc7df671a52acec0a87861 [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" />
26 <LinearLayout android:id="@+id/type"
27 android:layout_width="fill_parent"
28 android:layout_height="wrap_content"
29 android:orientation="vertical"
30 android:visibility="gone">
Daisuke Miyakawad3669922010-08-27 10:04:08 -070031
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070032 <TextView android:layout_width="fill_parent"
33 android:layout_height="wrap_content"
34 android:text="@string/wifi_ssid" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070035
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070036 <EditText android:id="@+id/ssid"
37 android:layout_width="fill_parent"
38 android:layout_height="wrap_content"
39 android:singleLine="true"
40 android:inputType="textNoSuggestions" />
41
42 <TextView android:layout_width="fill_parent"
43 android:layout_height="wrap_content"
44 android:text="@string/wifi_security" />
45
46 <Spinner android:id="@+id/security"
Daisuke Miyakawad3669922010-08-27 10:04:08 -070047 android:layout_width="fill_parent"
48 android:layout_height="wrap_content"
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070049 android:prompt="@string/wifi_security"
50 android:entries="@array/wifi_security" />
51 </LinearLayout> <!-- android:id="@+id/type" -->
Daisuke Miyakawad3669922010-08-27 10:04:08 -070052
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070053 <LinearLayout android:id="@+id/fields"
Daisuke Miyakawad3669922010-08-27 10:04:08 -070054 android:layout_width="fill_parent"
55 android:layout_height="wrap_content"
56 android:orientation="vertical"
57 android:visibility="gone">
58
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070059 <LinearLayout android:id="@+id/eap"
60 android:layout_width="fill_parent"
61 android:layout_height="wrap_content"
62 android:orientation="vertical"
63 android:visibility="gone">
Daisuke Miyakawad3669922010-08-27 10:04:08 -070064
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070065 <TextView
66 android:layout_width="fill_parent"
67 android:layout_height="wrap_content"
68 android:text="@string/wifi_eap_method" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070069
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070070 <Spinner android:id="@+id/method"
71 android:layout_width="fill_parent"
72 android:layout_height="wrap_content"
73 android:prompt="@string/wifi_eap_method"
74 android:entries="@array/wifi_eap_method" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070075
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070076 <TextView
77 android:layout_width="fill_parent"
78 android:layout_height="wrap_content"
79 android:text="@string/please_select_phase2" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070080
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070081 <Spinner android:id="@+id/phase2"
82 android:layout_width="fill_parent"
83 android:layout_height="wrap_content"
84 android:prompt="@string/please_select_phase2"
85 android:entries="@array/wifi_phase2_entries" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070086
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070087 <TextView
88 android:layout_width="fill_parent"
89 android:layout_height="wrap_content"
90 android:text="@string/wifi_eap_ca_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070091
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070092 <Spinner android:id="@+id/ca_cert"
93 android:layout_width="fill_parent"
94 android:layout_height="wrap_content"
95 android:prompt="@string/wifi_eap_ca_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -070096
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -070097 <TextView
98 android:layout_width="fill_parent"
99 android:layout_height="wrap_content"
100 android:text="@string/wifi_eap_user_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700101
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700102 <Spinner android:id="@+id/user_cert"
103 android:layout_width="fill_parent"
104 android:layout_height="wrap_content"
105 android:prompt="@string/wifi_eap_user_cert" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700106
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700107 <TextView
108 android:layout_width="fill_parent"
109 android:layout_height="wrap_content"
110 android:text="@string/wifi_eap_identity" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700111
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700112 <EditText android:id="@+id/identity"
113 android:layout_width="fill_parent"
114 android:layout_height="wrap_content"
115 android:singleLine="true"
116 android:inputType="textNoSuggestions" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700117
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700118 <TextView
119 android:layout_width="fill_parent"
120 android:layout_height="wrap_content"
121 android:text="@string/wifi_eap_anonymous" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700122
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700123 <EditText android:id="@+id/anonymous"
124 android:layout_width="fill_parent"
125 android:layout_height="wrap_content"
126 android:singleLine="true"
127 android:inputType="textNoSuggestions" />
128 </LinearLayout> <!-- android:id="@+id/eap" -->
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700129
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700130 <TextView android:layout_width="fill_parent"
131 android:layout_height="wrap_content"
132 android:text="@string/wifi_password" />
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700133
Daisuke Miyakawa5cd60eb2010-09-01 19:27:11 -0700134 <EditText android:id="@+id/password"
135 android:layout_width="fill_parent"
136 android:layout_height="wrap_content"
137 android:singleLine="true"
138 android:password="true" />
139
140 <CheckBox android:id="@+id/show_password"
141 android:layout_width="fill_parent"
142 android:layout_height="wrap_content"
143 android:text="@string/wifi_show_password" />
144 </LinearLayout> <!-- android:id="@+id/fields" -->
Irfan Sheriffe4cb9e42010-09-16 19:35:03 -0700145
146 <LinearLayout android:id="@+id/ipfields"
147 android:layout_width="fill_parent"
148 android:layout_height="wrap_content"
149 android:orientation="vertical"
150 android:visibility="gone">
151
152 <TextView
153 android:layout_width="fill_parent"
154 android:layout_height="wrap_content"
155 android:text="@string/wifi_ip_settings" />
156
157 <Spinner android:id="@+id/ipsettings"
158 android:layout_width="fill_parent"
159 android:layout_height="wrap_content"
160 android:prompt="@string/wifi_ip_settings"
161 android:entries="@array/wifi_ip_settings" />
162 </LinearLayout>
163
164 <LinearLayout android:id="@+id/staticip"
165 android:layout_width="fill_parent"
166 android:layout_height="wrap_content"
167 android:orientation="vertical"
168 android:visibility="gone">
169 <TextView
170 android:layout_width="fill_parent"
171 android:layout_height="wrap_content"
172 android:text="@string/wifi_ip_address" />
173
174 <EditText android:id="@+id/ipaddress"
175 android:layout_width="fill_parent"
176 android:layout_height="wrap_content"
177 android:singleLine="true"
178 android:inputType="textNoSuggestions" />
179
180 <TextView
181 android:layout_width="fill_parent"
182 android:layout_height="wrap_content"
183 android:text="@string/wifi_gateway" />
184
185 <EditText android:id="@+id/gateway"
186 android:layout_width="fill_parent"
187 android:layout_height="wrap_content"
188 android:singleLine="true"
189 android:inputType="textNoSuggestions" />
190
191 <TextView
192 android:layout_width="fill_parent"
193 android:layout_height="wrap_content"
194 android:text="@string/wifi_netmask" />
195
196 <EditText android:id="@+id/netmask"
197 android:layout_width="fill_parent"
198 android:layout_height="wrap_content"
199 android:singleLine="true"
200 android:inputType="textNoSuggestions" />
201
202 <TextView
203 android:layout_width="fill_parent"
204 android:layout_height="wrap_content"
205 android:text="@string/wifi_dns1" />
206
207 <EditText android:id="@+id/dns1"
208 android:layout_width="fill_parent"
209 android:layout_height="wrap_content"
210 android:singleLine="true"
211 android:inputType="textNoSuggestions" />
212
213 <TextView
214 android:layout_width="fill_parent"
215 android:layout_height="wrap_content"
216 android:text="@string/wifi_dns2" />
217
218 <EditText android:id="@+id/dns2"
219 android:layout_width="fill_parent"
220 android:layout_height="wrap_content"
221 android:singleLine="true"
222 android:inputType="textNoSuggestions" />
223 </LinearLayout>
224
Daisuke Miyakawad3669922010-08-27 10:04:08 -0700225</LinearLayout>