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 17 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content"> 20 <LinearLayout android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical" 23 android:padding="24dp"> 24 25 <LinearLayout android:id="@+id/editor" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:orientation="vertical" 29 android:visibility="gone"> 30 31 <TextView style="@style/vpn_label" 32 android:text="@string/vpn_name" 33 android:labelFor="@+id/name"/> 34 <EditText style="@style/vpn_value" android:id="@+id/name" 35 android:inputType="textCapWords"/> 36 37 <TextView style="@style/vpn_label" 38 android:text="@string/vpn_type" 39 android:labelFor="@+id/type"/> 40 <Spinner style="@style/vpn_value" android:id="@+id/type" 41 android:prompt="@string/vpn_type" 42 android:entries="@array/vpn_types"/> 43 44 <TextView style="@style/vpn_label" 45 android:text="@string/vpn_server" 46 android:labelFor="@+id/server"/> 47 <EditText style="@style/vpn_value" android:id="@+id/server"/> 48 49 <CheckBox style="@style/vpn_value" android:id="@+id/mppe" 50 android:text="@string/vpn_mppe" 51 android:singleLine="false" 52 android:visibility="gone"/> 53 54 <LinearLayout android:id="@+id/l2tp" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:orientation="vertical" 58 android:visibility="gone"> 59 <TextView style="@style/vpn_label" 60 android:text="@string/vpn_l2tp_secret" 61 android:labelFor="@+id/l2tp_secret"/> 62 <EditText style="@style/vpn_value" android:id="@+id/l2tp_secret" 63 android:password="true" 64 android:hint="@string/vpn_not_used"/> 65 </LinearLayout> 66 67 <LinearLayout android:id="@+id/ipsec_psk" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:orientation="vertical" 71 android:visibility="gone"> 72 <TextView style="@style/vpn_label" 73 android:text="@string/vpn_ipsec_identifier" 74 android:labelFor="@+id/ipsec_identifier"/> 75 <EditText style="@style/vpn_value" android:id="@+id/ipsec_identifier" 76 android:hint="@string/vpn_not_used"/> 77 78 <TextView style="@style/vpn_label" 79 android:text="@string/vpn_ipsec_secret" 80 android:labelFor="@+id/ipsec_secret"/> 81 <EditText style="@style/vpn_value" android:id="@+id/ipsec_secret" 82 android:password="true"/> 83 </LinearLayout> 84 85 <LinearLayout android:id="@+id/ipsec_user" 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content" 88 android:orientation="vertical" 89 android:visibility="gone"> 90 <TextView style="@style/vpn_label" 91 android:text="@string/vpn_ipsec_user_cert" 92 android:labelFor="@+id/ipsec_user_cert"/> 93 <Spinner style="@style/vpn_value" android:id="@+id/ipsec_user_cert" 94 android:prompt="@string/vpn_ipsec_user_cert" /> 95 </LinearLayout> 96 97 <LinearLayout android:id="@+id/ipsec_peer" 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:orientation="vertical" 101 android:visibility="gone"> 102 <TextView style="@style/vpn_label" 103 android:text="@string/vpn_ipsec_ca_cert" 104 android:labelFor="@+id/ipsec_ca_cert"/> 105 <Spinner style="@style/vpn_value" android:id="@+id/ipsec_ca_cert" 106 android:prompt="@string/vpn_ipsec_ca_cert" /> 107 108 <TextView style="@style/vpn_label" 109 android:text="@string/vpn_ipsec_server_cert" 110 android:labelFor="@+id/ipsec_server_cert"/> 111 <Spinner style="@style/vpn_value" android:id="@+id/ipsec_server_cert" 112 android:prompt="@string/vpn_ipsec_server_cert" /> 113 </LinearLayout> 114 115 <CheckBox style="@style/vpn_value" android:id="@+id/show_options" 116 android:singleLine="false" 117 android:text="@string/vpn_show_options"/> 118 </LinearLayout> 119 120 <LinearLayout android:id="@+id/options" 121 android:layout_width="match_parent" 122 android:layout_height="wrap_content" 123 android:orientation="vertical" 124 android:visibility="gone"> 125 <TextView style="@style/vpn_label" 126 android:text="@string/vpn_search_domains" 127 android:labelFor="@+id/search_domains"/> 128 <EditText style="@style/vpn_value" android:id="@+id/search_domains" 129 android:hint="@string/vpn_not_used"/> 130 131 <TextView style="@style/vpn_label" 132 android:text="@string/vpn_dns_servers" 133 android:labelFor="@+id/dns_servers"/> 134 <EditText style="@style/vpn_value" android:id="@+id/dns_servers" 135 android:hint="@string/vpn_not_used"/> 136 137 <TextView style="@style/vpn_label" 138 android:text="@string/vpn_routes" 139 android:labelFor="@+id/routes"/> 140 <EditText style="@style/vpn_value" android:id="@+id/routes" 141 android:hint="@string/vpn_not_used"/> 142 </LinearLayout> 143 144 <LinearLayout android:id="@+id/login" 145 android:layout_width="match_parent" 146 android:layout_height="wrap_content" 147 android:orientation="vertical" 148 android:animateLayoutChanges="true"> 149 150 <TextView style="@style/vpn_label" 151 android:text="@string/vpn_username" 152 android:labelFor="@+id/username"/> 153 <EditText style="@style/vpn_value" android:id="@+id/username"/> 154 155 <TextView style="@style/vpn_label" 156 android:text="@string/vpn_password" 157 android:labelFor="@+id/password"/> 158 <EditText style="@style/vpn_value" android:id="@+id/password" 159 android:password="true"/> 160 161 <CheckBox style="@style/vpn_value" android:id="@+id/save_login" 162 android:singleLine="false" 163 android:text="@string/vpn_save_login"/> 164 <CheckBox style="@style/vpn_value" android:id="@+id/always_on_vpn" 165 android:singleLine="false" 166 android:text="@string/vpn_menu_lockdown"/> 167 <TextView style="@style/vpn_warning" android:id="@+id/always_on_invalid_reason" 168 android:singleLine="false" 169 android:visibility="gone"/> 170 </LinearLayout> 171 </LinearLayout> 172 </ScrollView> 173