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="8dp"> 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" android:text="@string/vpn_name"/> 32 <EditText style="@style/vpn_value" android:id="@+id/name" 33 android:inputType="textCapWords"/> 34 35 <TextView style="@style/vpn_label" android:text="@string/vpn_type"/> 36 <Spinner style="@style/vpn_value" android:id="@+id/type" 37 android:prompt="@string/vpn_type" 38 android:entries="@array/vpn_types"/> 39 40 <TextView style="@style/vpn_label" android:text="@string/vpn_server"/> 41 <EditText style="@style/vpn_value" android:id="@+id/server"/> 42 43 <CheckBox style="@style/vpn_value" android:id="@+id/mppe" 44 android:text="@string/vpn_mppe" 45 android:singleLine="false" 46 android:visibility="gone"/> 47 48 <LinearLayout android:id="@+id/l2tp" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:orientation="vertical" 52 android:visibility="gone"> 53 <TextView style="@style/vpn_label" android:text="@string/vpn_l2tp_secret"/> 54 <EditText style="@style/vpn_value" android:id="@+id/l2tp_secret" 55 android:password="true" 56 android:hint="@string/vpn_not_used"/> 57 </LinearLayout> 58 59 <LinearLayout android:id="@+id/ipsec_psk" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:orientation="vertical" 63 android:visibility="gone"> 64 <TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_identifier"/> 65 <EditText style="@style/vpn_value" android:id="@+id/ipsec_identifier" 66 android:hint="@string/vpn_not_used"/> 67 68 <TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_secret"/> 69 <EditText style="@style/vpn_value" android:id="@+id/ipsec_secret" 70 android:password="true"/> 71 </LinearLayout> 72 73 <LinearLayout android:id="@+id/ipsec_user" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:orientation="vertical" 77 android:visibility="gone"> 78 <TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_user_cert"/> 79 <Spinner style="@style/vpn_value" android:id="@+id/ipsec_user_cert" 80 android:prompt="@string/vpn_ipsec_user_cert" /> 81 </LinearLayout> 82 83 <LinearLayout android:id="@+id/ipsec_peer" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:orientation="vertical" 87 android:visibility="gone"> 88 <TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_ca_cert"/> 89 <Spinner style="@style/vpn_value" android:id="@+id/ipsec_ca_cert" 90 android:prompt="@string/vpn_ipsec_ca_cert" /> 91 <TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_server_cert"/> 92 <Spinner style="@style/vpn_value" android:id="@+id/ipsec_server_cert" 93 android:prompt="@string/vpn_ipsec_server_cert" /> 94 </LinearLayout> 95 96 <CheckBox style="@style/vpn_value" android:id="@+id/show_options" 97 android:singleLine="false" 98 android:text="@string/vpn_show_options"/> 99 </LinearLayout> 100 101 <LinearLayout android:id="@+id/options" 102 android:layout_width="match_parent" 103 android:layout_height="wrap_content" 104 android:orientation="vertical" 105 android:visibility="gone"> 106 <TextView style="@style/vpn_label" android:text="@string/vpn_search_domains"/> 107 <EditText style="@style/vpn_value" android:id="@+id/search_domains" 108 android:hint="@string/vpn_not_used"/> 109 110 <TextView style="@style/vpn_label" android:text="@string/vpn_dns_servers"/> 111 <EditText style="@style/vpn_value" android:id="@+id/dns_servers" 112 android:hint="@string/vpn_not_used"/> 113 114 <TextView style="@style/vpn_label" android:text="@string/vpn_routes"/> 115 <EditText style="@style/vpn_value" android:id="@+id/routes" 116 android:hint="@string/vpn_not_used"/> 117 </LinearLayout> 118 119 <LinearLayout android:id="@+id/login" 120 android:layout_width="match_parent" 121 android:layout_height="wrap_content" 122 android:orientation="vertical"> 123 124 <TextView style="@style/vpn_label" android:text="@string/vpn_username"/> 125 <EditText style="@style/vpn_value" android:id="@+id/username"/> 126 127 <TextView style="@style/vpn_label" android:text="@string/vpn_password"/> 128 <EditText style="@style/vpn_value" android:id="@+id/password" 129 android:password="true"/> 130 131 <CheckBox style="@style/vpn_value" android:id="@+id/save_login" 132 android:singleLine="false" 133 android:text="@string/vpn_save_login"/> 134 <CheckBox style="@style/vpn_value" android:id="@+id/always_on_vpn" 135 android:singleLine="false" 136 android:text="@string/vpn_menu_lockdown"/> 137 </LinearLayout> 138 </LinearLayout> 139 </ScrollView> 140