diff options
author | Hung-ying Tyan <tyanh@google.com> | 2009-06-10 22:52:44 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2009-06-12 15:44:49 +0800 |
commit | 1617706d2529b2182d1a7fe2348495fb8f40bb81 (patch) | |
tree | 0054cdb730320cf5e515ab3f068e0ed9d41d9684 /res/layout | |
parent | 1d09759798f029d684a636683ab7bf185eda9e6f (diff) | |
download | packages_apps_Settings-1617706d2529b2182d1a7fe2348495fb8f40bb81.zip packages_apps_Settings-1617706d2529b2182d1a7fe2348495fb8f40bb81.tar.gz packages_apps_Settings-1617706d2529b2182d1a7fe2348495fb8f40bb81.tar.bz2 |
Add VPN settings classes to Settings app.
PATCH SET 2:
+ Add import com.android.settings.R
PATCH SET 3:
+ Remove @Override interface methods to be compilable by Java 1.5.
PATCH SET 4:
+ Add import android.net.vpn.VpnManager
PATCH SET 5:
+ Add license headers.
PATCH SET 6:
+ Remove Constant.java and move the constants to VpnSettings.
+ Make AuthenticationActor implement DialogInterface's handlers.
+ Remove trailing spaces.
PATCH SET 7:
+ Remove default username.
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/vpn_connect_dialog_view.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/res/layout/vpn_connect_dialog_view.xml b/res/layout/vpn_connect_dialog_view.xml new file mode 100644 index 0000000..540b404 --- /dev/null +++ b/res/layout/vpn_connect_dialog_view.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_marginLeft="@dimen/vpn_connect_margin_left" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <TextView android:id="@+id/username_str" + android:layout_width="@dimen/vpn_connect_input_box_label_width" + android:layout_height="wrap_content" + android:textSize="@dimen/vpn_connect_normal_text_size" + android:gravity="right" + android:layout_marginRight="@dimen/vpn_connect_input_box_padding" + android:text="@string/vpn_username_colon" /> + <EditText android:id="@+id/username_value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/vpn_connect_margin_right" + android:singleLine="True"/> + </LinearLayout> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_marginLeft="@dimen/vpn_connect_margin_left" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="10sp"> + <TextView android:id="@+id/password_str" + android:layout_width="@dimen/vpn_connect_input_box_label_width" + android:layout_height="wrap_content" + android:textSize="@dimen/vpn_connect_normal_text_size" + android:gravity="right" + android:layout_marginRight="@dimen/vpn_connect_input_box_padding" + android:text="@string/vpn_password_colon" /> + <EditText android:id="@+id/password_value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/vpn_connect_margin_right" + android:password="True" + android:singleLine="True"/> + </LinearLayout> + +</LinearLayout> |