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 | b3024fa | 2010-09-16 17:53:59 -0700 | [diff] [blame^] | 187 | <LinearLayout android:id="@+id/ip_fields" |
Irfan Sheriff | e4cb9e4 | 2010-09-16 19:35:03 -0700 | [diff] [blame] | 188 | 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 Sheriff | b3024fa | 2010-09-16 17:53:59 -0700 | [diff] [blame^] | 198 | <Spinner android:id="@+id/ip_settings" |
Irfan Sheriff | e4cb9e4 | 2010-09-16 19:35:03 -0700 | [diff] [blame] | 199 | 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" |
| 235 | android:text="@string/wifi_netmask" /> |
| 236 | |
| 237 | <EditText android:id="@+id/netmask" |
| 238 | 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" /> |
| 264 | </LinearLayout> |
| 265 | |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 266 | </LinearLayout> |