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 --> |
| 17 | <LinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:orientation="vertical" |
| 20 | android:layout_width="fill_parent" |
| 21 | android:layout_height="fill_parent"> |
| 22 | <!-- <TextView android:id="@+id/title" |
| 23 | android:layout_width="fill_parent" |
| 24 | android:layout_height="wrap_content" |
| 25 | android:text="@string/title" /> --> |
| 26 | |
| 27 | <LinearLayout android:id="@+id/info" |
| 28 | android:layout_width="fill_parent" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:orientation="vertical" /> |
| 31 | |
| 32 | <LinearLayout android:id="@+id/type" |
| 33 | android:layout_width="fill_parent" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:orientation="vertical" |
| 36 | android:visibility="gone"> |
| 37 | |
| 38 | <TextView android:layout_width="fill_parent" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:text="@string/wifi_ssid" /> |
| 41 | |
| 42 | <EditText android:id="@+id/ssid" |
| 43 | android:layout_width="fill_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:singleLine="true" |
| 46 | android:inputType="textNoSuggestions" /> |
| 47 | |
| 48 | <TextView android:layout_width="fill_parent" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:text="@string/wifi_security" /> |
| 51 | |
| 52 | <Spinner android:id="@+id/security" |
| 53 | android:layout_width="fill_parent" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:prompt="@string/wifi_security" |
| 56 | android:entries="@array/wifi_security" /> |
| 57 | </LinearLayout> <!-- android:id="@+id/type" --> |
| 58 | |
| 59 | <LinearLayout android:id="@+id/fields" |
| 60 | android:layout_width="fill_parent" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:orientation="vertical" |
| 63 | android:visibility="gone"> |
| 64 | |
| 65 | <LinearLayout android:id="@+id/eap" |
| 66 | android:layout_width="fill_parent" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:orientation="vertical" |
| 69 | android:visibility="gone"> |
| 70 | |
| 71 | <TextView |
| 72 | android:layout_width="fill_parent" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:text="@string/wifi_eap_method" /> |
| 75 | |
| 76 | <Spinner android:id="@+id/method" |
| 77 | android:layout_width="fill_parent" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:prompt="@string/wifi_eap_method" |
| 80 | android:entries="@array/wifi_eap_method" /> |
| 81 | |
| 82 | <TextView |
| 83 | android:layout_width="fill_parent" |
| 84 | android:layout_height="wrap_content" |
| 85 | android:text="@string/please_select_phase2" /> |
| 86 | |
| 87 | <Spinner android:id="@+id/phase2" |
| 88 | android:layout_width="fill_parent" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:prompt="@string/please_select_phase2" |
| 91 | android:entries="@array/wifi_phase2_entries" /> |
| 92 | |
| 93 | <TextView |
| 94 | android:layout_width="fill_parent" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:text="@string/wifi_eap_ca_cert" /> |
| 97 | |
| 98 | <Spinner android:id="@+id/ca_cert" |
| 99 | android:layout_width="fill_parent" |
| 100 | android:layout_height="wrap_content" |
| 101 | android:prompt="@string/wifi_eap_ca_cert" /> |
| 102 | |
| 103 | <TextView |
| 104 | android:layout_width="fill_parent" |
| 105 | android:layout_height="wrap_content" |
| 106 | android:text="@string/wifi_eap_user_cert" /> |
| 107 | |
| 108 | <Spinner android:id="@+id/user_cert" |
| 109 | android:layout_width="fill_parent" |
| 110 | android:layout_height="wrap_content" |
| 111 | android:prompt="@string/wifi_eap_user_cert" /> |
| 112 | |
| 113 | <TextView |
| 114 | android:layout_width="fill_parent" |
| 115 | android:layout_height="wrap_content" |
| 116 | android:text="@string/wifi_eap_identity" /> |
| 117 | |
| 118 | <EditText android:id="@+id/identity" |
| 119 | android:layout_width="fill_parent" |
| 120 | android:layout_height="wrap_content" |
| 121 | android:singleLine="true" |
| 122 | android:inputType="textNoSuggestions" /> |
| 123 | |
| 124 | <TextView |
| 125 | android:layout_width="fill_parent" |
| 126 | android:layout_height="wrap_content" |
| 127 | android:text="@string/wifi_eap_anonymous" /> |
| 128 | |
| 129 | <EditText android:id="@+id/anonymous" |
| 130 | android:layout_width="fill_parent" |
| 131 | android:layout_height="wrap_content" |
| 132 | android:singleLine="true" |
| 133 | android:inputType="textNoSuggestions" /> |
| 134 | </LinearLayout> <!-- android:id="@+id/eap" --> |
| 135 | |
| 136 | <TextView android:layout_width="fill_parent" |
| 137 | android:layout_height="wrap_content" |
| 138 | android:text="@string/wifi_password" /> |
| 139 | |
| 140 | <EditText android:id="@+id/password" |
| 141 | android:layout_width="fill_parent" |
| 142 | android:layout_height="wrap_content" |
| 143 | android:singleLine="true" |
| 144 | android:password="true" /> |
| 145 | |
| 146 | <CheckBox android:id="@+id/show_password" |
| 147 | android:layout_width="fill_parent" |
| 148 | android:layout_height="wrap_content" |
| 149 | android:text="@string/wifi_show_password" /> |
| 150 | </LinearLayout> <!-- android:id="@+id/fields" --> |
| 151 | </LinearLayout> |