android: Use TextInputLayout in login dialog

This commit is contained in:
Tobias Brunner
2016-05-02 18:39:18 +02:00
parent ea15f20a56
commit be05310e7a
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?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 Giuliano Grassi
Copyright (C) 2012 Ralf Sager 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 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 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 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details. for more details.
--> -->
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:padding="5dp" android:padding="10dp" >
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView <android.support.design.widget.TextInputLayout
android:layout_height="wrap_content" android:id="@+id/username_wrap"
android:layout_width="wrap_content"
android:text="@string/profile_username_label"
android:textStyle="bold" />
<EditText
android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:id="@+id/username" android:layout_height="wrap_content" >
android:enabled="false"
android:inputType="none" />
<TextView <android.support.design.widget.TextInputEditText
android:layout_height="wrap_content" android:id="@+id/username"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:text="@string/profile_password_label" android:layout_height="wrap_content"
android:textStyle="bold" /> android:enabled="false"
android:inputType="none"
android:hint="@string/profile_username_label" />
<EditText </android.support.design.widget.TextInputLayout>
android:layout_height="wrap_content"
<android.support.design.widget.TextInputLayout
android:id="@+id/password_wrap"
android:layout_width="match_parent" android:layout_width="match_parent"
android:id="@+id/password" android:layout_height="wrap_content"
android:inputType="textPassword|textNoSuggestions" android:layout_marginTop="4dp" >
android:singleLine="true" />
<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> </LinearLayout>