1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="wrap_content" 19 android:orientation="vertical" 20 android:paddingTop="0dp" 21 android:paddingLeft="24dp" 22 android:paddingRight="24dp" > 23 <TextView 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" 27 android:id="@+id/dialog_alert_subtitle" 28 android:text="@string/vpn_insecure_dialog_subtitle" 29 android:textColor="?android:attr/colorError" 30 android:visibility="gone" 31 android:includeFontPadding="false" 32 android:padding="0dp" /> 33 34 <ScrollView 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content"> 37 <LinearLayout android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:orientation="vertical" 40 android:paddingTop="24dp"> 41 42 <LinearLayout android:id="@+id/editor" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:orientation="vertical" 46 android:visibility="gone"> 47 48 <TextView style="@style/vpn_label" 49 android:text="@string/vpn_name" 50 android:labelFor="@+id/name"/> 51 <EditText style="@style/vpn_value" 52 android:id="@+id/name" 53 android:inputType="textCapWords"/> 54 55 <TextView style="@style/vpn_label" 56 android:text="@string/vpn_type" 57 android:labelFor="@+id/type"/> 58 <Spinner style="@style/vpn_value" 59 android:id="@+id/type" 60 android:prompt="@string/vpn_type" 61 android:entries="@array/vpn_types"/> 62 63 <TextView style="@style/vpn_label" 64 android:text="@string/vpn_server" 65 android:labelFor="@+id/server"/> 66 <EditText style="@style/vpn_value" 67 android:id="@+id/server"/> 68 69 <CheckBox style="@style/vpn_value" 70 android:id="@+id/mppe" 71 android:text="@string/vpn_mppe" 72 android:singleLine="false" 73 android:visibility="gone"/> 74 75 <LinearLayout android:id="@+id/l2tp" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:orientation="vertical" 79 android:visibility="gone"> 80 <TextView style="@style/vpn_label" 81 android:text="@string/vpn_l2tp_secret" 82 android:labelFor="@+id/l2tp_secret"/> 83 <EditText style="@style/vpn_value" 84 android:id="@+id/l2tp_secret" 85 android:password="true" 86 android:hint="@string/vpn_not_used"/> 87 </LinearLayout> 88 89 <LinearLayout android:id="@+id/options_ipsec_identity" 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:orientation="vertical" 93 android:visibility="gone"> 94 <TextView style="@style/vpn_label" 95 android:text="@string/vpn_ipsec_identifier" 96 android:labelFor="@+id/ipsec_identifier"/> 97 <EditText style="@style/vpn_value" 98 android:id="@+id/ipsec_identifier" 99 android:hint="@string/vpn_not_used"/> 100 </LinearLayout> 101 102 <LinearLayout android:id="@+id/ipsec_psk" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:orientation="vertical" 106 android:visibility="gone"> 107 <TextView style="@style/vpn_label" 108 android:text="@string/vpn_ipsec_secret" 109 android:labelFor="@+id/ipsec_secret"/> 110 <EditText style="@style/vpn_value" 111 android:id="@+id/ipsec_secret" 112 android:password="true"/> 113 </LinearLayout> 114 115 <LinearLayout android:id="@+id/ipsec_user" 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:orientation="vertical" 119 android:visibility="gone"> 120 <TextView style="@style/vpn_label" 121 android:text="@string/vpn_ipsec_user_cert" 122 android:labelFor="@+id/ipsec_user_cert"/> 123 <Spinner style="@style/vpn_value" 124 android:id="@+id/ipsec_user_cert" 125 android:prompt="@string/vpn_ipsec_user_cert" /> 126 </LinearLayout> 127 128 <LinearLayout android:id="@+id/ipsec_peer" 129 android:layout_width="match_parent" 130 android:layout_height="wrap_content" 131 android:orientation="vertical" 132 android:visibility="gone"> 133 <TextView style="@style/vpn_label" 134 android:text="@string/vpn_ipsec_ca_cert" 135 android:labelFor="@+id/ipsec_ca_cert"/> 136 <Spinner style="@style/vpn_value" 137 android:id="@+id/ipsec_ca_cert" 138 android:prompt="@string/vpn_ipsec_ca_cert" /> 139 140 <TextView style="@style/vpn_label" 141 android:text="@string/vpn_ipsec_server_cert" 142 android:labelFor="@+id/ipsec_server_cert"/> 143 <Spinner style="@style/vpn_value" 144 android:id="@+id/ipsec_server_cert" 145 android:prompt="@string/vpn_ipsec_server_cert" /> 146 </LinearLayout> 147 148 <CheckBox style="@style/vpn_value" 149 android:id="@+id/show_options" 150 android:singleLine="false" 151 android:text="@string/vpn_show_options"/> 152 </LinearLayout> 153 154 <LinearLayout android:id="@+id/options" 155 android:layout_width="match_parent" 156 android:layout_height="wrap_content" 157 android:orientation="vertical" 158 android:visibility="gone"> 159 <LinearLayout android:id="@+id/network_options" 160 android:layout_width="match_parent" 161 android:layout_height="wrap_content" 162 android:orientation="vertical"> 163 <TextView style="@style/vpn_label" 164 android:text="@string/vpn_search_domains" 165 android:labelFor="@+id/search_domains"/> 166 <EditText style="@style/vpn_value" 167 android:id="@+id/search_domains" 168 android:hint="@string/vpn_not_used"/> 169 170 <TextView style="@style/vpn_label" 171 android:text="@string/vpn_dns_servers" 172 android:labelFor="@+id/dns_servers"/> 173 <EditText style="@style/vpn_value" 174 android:id="@+id/dns_servers" 175 android:hint="@string/vpn_not_used"/> 176 177 <TextView style="@style/vpn_label" 178 android:text="@string/vpn_routes" 179 android:labelFor="@+id/routes"/> 180 <EditText style="@style/vpn_value" 181 android:id="@+id/routes" 182 android:hint="@string/vpn_not_used"/> 183 </LinearLayout> 184 185 <TextView android:id="@+id/vpn_proxy_settings_title" 186 style="@style/vpn_label" 187 android:text="@string/proxy_settings_title" 188 android:labelFor="@+id/vpn_proxy_settings" /> 189 190 <Spinner android:id="@+id/vpn_proxy_settings" 191 style="@style/vpn_value" 192 android:prompt="@string/proxy_settings_title" 193 android:entries="@array/vpn_proxy_settings" /> 194 195 <LinearLayout 196 android:id="@+id/vpn_proxy_fields" 197 android:layout_width="match_parent" 198 android:layout_height="wrap_content" 199 android:orientation="vertical" 200 android:visibility="gone" > 201 202 <TextView 203 style="@style/vpn_label" 204 android:text="@string/proxy_hostname_label" 205 android:labelFor="@+id/vpn_proxy_host" /> 206 207 <EditText 208 android:id="@+id/vpn_proxy_host" 209 style="@style/vpn_value" 210 android:hint="@string/proxy_hostname_hint" 211 android:inputType="textNoSuggestions" /> 212 213 <TextView 214 style="@style/vpn_label" 215 android:text="@string/proxy_port_label" 216 android:labelFor="@+id/vpn_proxy_port" /> 217 218 <EditText 219 android:id="@+id/vpn_proxy_port" 220 style="@style/vpn_value" 221 android:hint="@string/proxy_port_hint" 222 android:inputType="number" /> 223 </LinearLayout> 224 </LinearLayout> 225 226 <LinearLayout android:id="@+id/userpass" 227 android:layout_width="match_parent" 228 android:layout_height="wrap_content" 229 android:orientation="vertical"> 230 231 <TextView style="@style/vpn_label" 232 android:text="@string/vpn_username" 233 android:labelFor="@+id/username"/> 234 <EditText style="@style/vpn_value" 235 android:id="@+id/username"/> 236 237 <TextView style="@style/vpn_label" 238 android:text="@string/vpn_password" 239 android:labelFor="@+id/password"/> 240 <EditText style="@style/vpn_value" 241 android:id="@+id/password" 242 android:password="true"/> 243 244 <CheckBox style="@style/vpn_value" 245 android:id="@+id/save_login" 246 android:singleLine="false" 247 android:text="@string/vpn_save_login"/> 248 </LinearLayout> 249 250 <LinearLayout android:id="@+id/connect" 251 android:layout_width="match_parent" 252 android:layout_height="wrap_content" 253 android:orientation="vertical" 254 android:animateLayoutChanges="true"> 255 <CheckBox style="@style/vpn_value" 256 android:id="@+id/always_on_vpn" 257 android:singleLine="false" 258 android:text="@string/vpn_menu_lockdown"/> 259 <TextView style="@style/vpn_warning" 260 android:id="@+id/always_on_invalid_reason" 261 android:singleLine="false" 262 android:visibility="gone"/> 263 </LinearLayout> 264 </LinearLayout> 265 </ScrollView> 266</LinearLayout> 267