Merge pull request #372 from veyndan/form-fields

Use a Material design for the form fields
This commit is contained in:
Josephine Lim 2017-03-04 01:47:01 +10:00 committed by GitHub
commit 74f9775771

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"
> >
@ -42,25 +43,42 @@
android:layout_height="48dp" android:layout_height="48dp"
/> />
<EditText <android.support.design.widget.TextInputLayout
android:id="@+id/loginUsername"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/username"
android:inputType="textNoSuggestions"
android:imeOptions="flagNoExtractUi"
> >
<requestFocus />
</EditText>
<EditText <android.support.design.widget.TextInputEditText
android:id="@+id/loginPassword" android:id="@+id/loginUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/username"
android:imeOptions="flagNoExtractUi"
android:inputType="textNoSuggestions"
>
<requestFocus/>
</android.support.design.widget.TextInputEditText>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
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"