Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 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 | <!-- All ids in this layout must be in wifi_dialog.xml --> |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:orientation="vertical" |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 19 | android:layout_width="fill_parent" |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 20 | android:layout_height="fill_parent"> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 21 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 22 | <LinearLayout android:id="@+id/info" |
| 23 | android:layout_width="fill_parent" |
| 24 | android:layout_height="wrap_content" |
| 25 | android:orientation="vertical" /> |
Irfan Sheriff | b3024fa | 2010-09-16 17:53:59 -0700 | [diff] [blame] | 26 | |
| 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 Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 67 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 72 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 73 | <TextView android:layout_width="fill_parent" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:text="@string/wifi_ssid" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 76 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 77 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 88 | android:layout_width="fill_parent" |
| 89 | android:layout_height="wrap_content" |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 90 | android:prompt="@string/wifi_security" |
| 91 | android:entries="@array/wifi_security" /> |
| 92 | </LinearLayout> <!-- android:id="@+id/type" --> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 93 | |
Irfan Sheriff | b3024fa | 2010-09-16 17:53:59 -0700 | [diff] [blame] | 94 | <LinearLayout android:id="@+id/security_fields" |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 95 | android:layout_width="fill_parent" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:orientation="vertical" |
| 98 | android:visibility="gone"> |
| 99 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 100 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 105 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 106 | <TextView |
| 107 | android:layout_width="fill_parent" |
| 108 | android:layout_height="wrap_content" |
| 109 | android:text="@string/wifi_eap_method" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 110 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 111 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 116 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 117 | <TextView |
| 118 | android:layout_width="fill_parent" |
| 119 | android:layout_height="wrap_content" |
| 120 | android:text="@string/please_select_phase2" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 121 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 122 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 127 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 128 | <TextView |
| 129 | android:layout_width="fill_parent" |
| 130 | android:layout_height="wrap_content" |
| 131 | android:text="@string/wifi_eap_ca_cert" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 132 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 133 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 137 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 138 | <TextView |
| 139 | android:layout_width="fill_parent" |
| 140 | android:layout_height="wrap_content" |
| 141 | android:text="@string/wifi_eap_user_cert" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 142 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 143 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 147 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 148 | <TextView |
| 149 | android:layout_width="fill_parent" |
| 150 | android:layout_height="wrap_content" |
| 151 | android:text="@string/wifi_eap_identity" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 152 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 153 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 158 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 159 | <TextView |
| 160 | android:layout_width="fill_parent" |
| 161 | android:layout_height="wrap_content" |
| 162 | android:text="@string/wifi_eap_anonymous" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 163 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 164 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 170 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 171 | <TextView android:layout_width="fill_parent" |
| 172 | android:layout_height="wrap_content" |
| 173 | android:text="@string/wifi_password" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 174 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 175 | <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 Sheriff | b3024fa | 2010-09-16 17:53:59 -0700 | [diff] [blame] | 185 | </LinearLayout> <!-- android:id="@+id/security_fields" --> |
Irfan Sheriff | e4cb9e4 | 2010-09-16 19:35:03 -0700 | [diff] [blame] | 186 | |
Irfan Sheriff | c536192 | 2010-09-22 16:09:35 -0700 | [diff] [blame] | 187 | <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 Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 204 | <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 Sheriff | c536192 | 2010-09-22 16:09:35 -0700 | [diff] [blame] | 221 | <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 Sheriff | 086147c | 2011-03-01 15:01:42 -0800 | [diff] [blame] | 226 | |
Irfan Sheriff | c536192 | 2010-09-22 16:09:35 -0700 | [diff] [blame] | 227 | <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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 235 | android:inputType="textNoSuggestions" |
Irfan Sheriff | 086147c | 2011-03-01 15:01:42 -0800 | [diff] [blame] | 236 | android:hint="@string/proxy_hostname_hint" /> |
Irfan Sheriff | c536192 | 2010-09-22 16:09:35 -0700 | [diff] [blame] | 237 | |
| 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 246 | android:inputType="number" |
Irfan Sheriff | 086147c | 2011-03-01 15:01:42 -0800 | [diff] [blame] | 247 | android:hint="@string/proxy_port_hint" /> |
Irfan Sheriff | c536192 | 2010-09-22 16:09:35 -0700 | [diff] [blame] | 248 | |
| 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 257 | android:inputType="textNoSuggestions" |
Irfan Sheriff | 086147c | 2011-03-01 15:01:42 -0800 | [diff] [blame] | 258 | android:hint="@string/proxy_exclusionlist_hint" /> |
Irfan Sheriff | c536192 | 2010-09-22 16:09:35 -0700 | [diff] [blame] | 259 | |
| 260 | </LinearLayout> |
Irfan Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 261 | |
| 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 294 | android:hint="wifi_ip_address_hint" |
Irfan Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 295 | 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 306 | android:hint="wifi_gateway_hint" |
Irfan Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 307 | 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 318 | android:hint="wifi_network_prefix_length_hint" |
| 319 | android:inputType="number" /> |
Irfan Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 320 | |
| 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 330 | android:hint="wifi_dns1_hint" |
Irfan Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 331 | 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 Sheriff | 5d31868 | 2011-03-02 14:39:32 -0800 | [diff] [blame] | 342 | android:hint="wifi_dns2_hint" |
Irfan Sheriff | d9c7dcf | 2011-02-09 15:26:25 -0800 | [diff] [blame] | 343 | android:inputType="textNoSuggestions" /> |
Irfan Sheriff | e4cb9e4 | 2010-09-16 19:35:03 -0700 | [diff] [blame] | 344 | </LinearLayout> |
| 345 | |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 346 | </LinearLayout> |