Use a material form field for password

This commit is contained in:
veyndan 2017-03-03 13:56:58 +00:00
parent 07dd272708
commit 436e028649

View file

@ -1,4 +1,5 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
> >
@ -62,14 +63,22 @@
</android.support.design.widget.TextInputLayout> </android.support.design.widget.TextInputLayout>
<EditText <android.support.design.widget.TextInputLayout
android:id="@+id/loginPassword"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/password" app:passwordToggleEnabled="false"
android:inputType="textPassword" >
android:imeOptions="flagNoExtractUi"
/> <android.support.design.widget.TextInputEditText
android:id="@+id/loginPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password"
android:imeOptions="flagNoExtractUi"
android:inputType="textPassword"
/>
</android.support.design.widget.TextInputLayout>
<Button <Button
android:id="@+id/loginButton" android:id="@+id/loginButton"