Skip to content

Commit fec737b

Browse files
committed
Set better input types
Set specific input types for the email+password edits, so that Android shows a more useful keyboard. Fixes #32
1 parent 24ba227 commit fec737b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/src/main/res/layout/fragment_firebase_login.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
android:hint="Email"
3232
android:paddingTop="20dp"
3333
style="@style/FirebaseEditTextTheme"
34-
android:theme="@style/FirebaseEditTextTheme"/>
34+
android:theme="@style/FirebaseEditTextTheme"
35+
android:inputType="textEmailAddress" />
3536

3637
<EditText
3738
android:layout_width="match_parent"
@@ -40,9 +41,9 @@
4041
android:ems="10"
4142
android:hint="Password"
4243
android:paddingTop="16dp"
43-
android:password="true"
4444
style="@style/FirebaseEditTextTheme"
45-
android:theme="@style/FirebaseEditTextTheme"/>
45+
android:theme="@style/FirebaseEditTextTheme"
46+
android:inputType="textPassword" />
4647

4748
<Button
4849
android:layout_width="match_parent"

0 commit comments

Comments
 (0)