Settings: add a new layout for VpnDialog.
Change-Id: Ib9d00dc5f56933db60aa08bce489343b00281e28
This commit is contained in:
126
res/layout/vpn_dialog.xml
Normal file
126
res/layout/vpn_dialog.xml
Normal file
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="5mm">
|
||||
|
||||
<LinearLayout android:id="@+id/editor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_name"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/name"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_type"/>
|
||||
<Spinner style="@style/vpn_value" android:id="@+id/type"
|
||||
android:prompt="@string/vpn_type"
|
||||
android:entries="@array/vpn_types"/>
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_server"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/server"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<CheckBox style="@style/vpn_value" android:id="@+id/mppe"
|
||||
android:text="@string/vpn_mppe"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<LinearLayout android:id="@+id/l2tp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_l2tp_secret"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/l2tp_secret"
|
||||
android:singleLine="true"
|
||||
android:password="true"
|
||||
android:hint="@string/vpn_not_used"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/ipsec_psk"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_identifier"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/ipsec_identifier"
|
||||
android:singleLine="true"
|
||||
android:hint="@string/vpn_not_used"/>
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_secret"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/ipsec_secret"
|
||||
android:singleLine="true"
|
||||
android:password="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/ipsec_user"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_user_cert"/>
|
||||
<Spinner style="@style/vpn_value" android:id="@+id/ipsec_user_cert"
|
||||
android:prompt="@string/vpn_ipsec_user_cert" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/ipsec_ca"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_ipsec_ca_cert"/>
|
||||
<Spinner style="@style/vpn_value" android:id="@+id/ipsec_ca_cert"
|
||||
android:prompt="@string/vpn_ipsec_ca_cert" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_domains"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/domains"
|
||||
android:hint="@string/vpn_not_used"/>
|
||||
|
||||
<!-- Not sure if we have time to make it. -->
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_routes"
|
||||
android:visibility="gone"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/routes"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/login"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_username"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/username"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<TextView style="@style/vpn_label" android:text="@string/vpn_password"/>
|
||||
<EditText style="@style/vpn_value" android:id="@+id/password"
|
||||
android:singleLine="true"
|
||||
android:password="true"/>
|
||||
|
||||
<CheckBox style="@style/vpn_value" android:id="@+id/save_login"
|
||||
android:text="@string/vpn_save_login"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
Reference in New Issue
Block a user