android: Use TextInputLayout in login dialog
[strongswan.git] / src / frontends / android / app / src / main / res / layout / login_dialog.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2012-2016 Tobias Brunner
4 Copyright (C) 2012 Giuliano Grassi
5 Copyright (C) 2012 Ralf Sager
6 HSR Hochschule fuer Technik Rapperswil
7
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_height="match_parent"
20 android:layout_width="match_parent"
21 android:orientation="vertical"
22 android:padding="10dp" >
23
24 <android.support.design.widget.TextInputLayout
25 android:id="@+id/username_wrap"
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content" >
28
29 <android.support.design.widget.TextInputEditText
30 android:id="@+id/username"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:enabled="false"
34 android:inputType="none"
35 android:hint="@string/profile_username_label" />
36
37 </android.support.design.widget.TextInputLayout>
38
39 <android.support.design.widget.TextInputLayout
40 android:id="@+id/password_wrap"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:layout_marginTop="4dp" >
44
45 <android.support.design.widget.TextInputEditText
46 android:id="@+id/password"
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
49 android:singleLine="true"
50 android:inputType="textPassword|textNoSuggestions"
51 android:hint="@string/profile_password_label" />
52
53 </android.support.design.widget.TextInputLayout>
54
55 </LinearLayout>