Skip to content

Commit

Permalink
code4romania#57 Set autofill attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Cristian Bolos committed Oct 8, 2019
1 parent 739a454 commit ea6f748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@
style="@style/InputLogin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="username,phone"
android:hint="@string/login_phone"
android:inputType="phone"
android:text="0722222222" />
android:text="0722222222"
tools:targetApi="o" />

</com.google.android.material.textfield.TextInputLayout>

Expand All @@ -97,10 +99,12 @@
style="@style/InputLogin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="password"
android:hint="@string/login_password"
android:imeOptions="actionDone"
android:inputType="textPassword"
android:text="123456" />
android:text="123456"
tools:targetApi="o" />

</com.google.android.material.textfield.TextInputLayout>

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_branch_selection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/button_height"
android:enabled="false"
android:importantForAutofill="no"
android:inputType="number" />

</LinearLayout>
Expand Down

0 comments on commit ea6f748

Please sign in to comment.