diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2016-05-02 18:04:03 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2016-05-02 18:39:18 +0200 |
| commit | be05310e7ab14c5fb3f1cbe8a850b9e9ea88198d (patch) | |
| tree | 073a6d70d2d64574bd866978c0c8941931fd519c /src | |
| parent | ea15f20a56479314e65899869ae6ca03ccca2b3f (diff) | |
| download | strongswan-be05310e7ab14c5fb3f1cbe8a850b9e9ea88198d.tar.bz2 strongswan-be05310e7ab14c5fb3f1cbe8a850b9e9ea88198d.tar.xz | |
android: Use TextInputLayout in login dialog
Diffstat (limited to 'src')
| -rw-r--r-- | src/frontends/android/app/src/main/res/layout/login_dialog.xml | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/src/frontends/android/app/src/main/res/layout/login_dialog.xml b/src/frontends/android/app/src/main/res/layout/login_dialog.xml index 0262af0a3..adfaac5e2 100644 --- a/src/frontends/android/app/src/main/res/layout/login_dialog.xml +++ b/src/frontends/android/app/src/main/res/layout/login_dialog.xml @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (C) 2012 Tobias Brunner + Copyright (C) 2012-2016 Tobias Brunner Copyright (C) 2012 Giuliano Grassi Copyright (C) 2012 Ralf Sager - Hochschule fuer Technik Rapperswil + HSR Hochschule fuer Technik Rapperswil This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -15,37 +15,41 @@ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. --> -<LinearLayout +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" - android:padding="5dp" - xmlns:android="http://schemas.android.com/apk/res/android"> + android:padding="10dp" > - <TextView - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:text="@string/profile_username_label" - android:textStyle="bold" /> - - <EditText - android:layout_height="wrap_content" + <android.support.design.widget.TextInputLayout + android:id="@+id/username_wrap" android:layout_width="match_parent" - android:id="@+id/username" - android:enabled="false" - android:inputType="none" /> + android:layout_height="wrap_content" > - <TextView - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:text="@string/profile_password_label" - android:textStyle="bold" /> + <android.support.design.widget.TextInputEditText + android:id="@+id/username" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:enabled="false" + android:inputType="none" + android:hint="@string/profile_username_label" /> - <EditText - android:layout_height="wrap_content" + </android.support.design.widget.TextInputLayout> + + <android.support.design.widget.TextInputLayout + android:id="@+id/password_wrap" android:layout_width="match_parent" - android:id="@+id/password" - android:inputType="textPassword|textNoSuggestions" - android:singleLine="true" /> + android:layout_height="wrap_content" + android:layout_marginTop="4dp" > + + <android.support.design.widget.TextInputEditText + android:id="@+id/password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:inputType="textPassword|textNoSuggestions" + android:hint="@string/profile_password_label" /> + + </android.support.design.widget.TextInputLayout> </LinearLayout> |
