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" /> |
| 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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 31 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 32 | <TextView android:layout_width="fill_parent" |
| 33 | android:layout_height="wrap_content" |
| 34 | android:text="@string/wifi_ssid" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 35 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 36 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 47 | android:layout_width="fill_parent" |
| 48 | android:layout_height="wrap_content" |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 49 | android:prompt="@string/wifi_security" |
| 50 | android:entries="@array/wifi_security" /> |
| 51 | </LinearLayout> <!-- android:id="@+id/type" --> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 52 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 53 | <LinearLayout android:id="@+id/fields" |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 54 | android:layout_width="fill_parent" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:orientation="vertical" |
| 57 | android:visibility="gone"> |
| 58 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 59 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 64 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 65 | <TextView |
| 66 | android:layout_width="fill_parent" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:text="@string/wifi_eap_method" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 69 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 70 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 75 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 76 | <TextView |
| 77 | android:layout_width="fill_parent" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:text="@string/please_select_phase2" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 80 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 81 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 86 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 87 | <TextView |
| 88 | android:layout_width="fill_parent" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:text="@string/wifi_eap_ca_cert" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 91 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 92 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 96 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 97 | <TextView |
| 98 | android:layout_width="fill_parent" |
| 99 | android:layout_height="wrap_content" |
| 100 | android:text="@string/wifi_eap_user_cert" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 101 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 102 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 106 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 107 | <TextView |
| 108 | android:layout_width="fill_parent" |
| 109 | android:layout_height="wrap_content" |
| 110 | android:text="@string/wifi_eap_identity" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 111 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 112 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 117 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 118 | <TextView |
| 119 | android:layout_width="fill_parent" |
| 120 | android:layout_height="wrap_content" |
| 121 | android:text="@string/wifi_eap_anonymous" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 122 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 123 | <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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 129 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 130 | <TextView android:layout_width="fill_parent" |
| 131 | android:layout_height="wrap_content" |
| 132 | android:text="@string/wifi_password" /> |
Daisuke Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 133 | |
Daisuke Miyakawa | 5cd60eb | 2010-09-01 19:27:11 -0700 | [diff] [blame] | 134 | <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 Sheriff | e4cb9e4 | 2010-09-16 19:35:03 -0700 | [diff] [blame^] | 145 | |
| 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 Miyakawa | d366992 | 2010-08-27 10:04:08 -0700 | [diff] [blame] | 225 | </LinearLayout> |