#1794 Add auto fill hints for easier login

This commit is contained in:
sictiru 2023-04-30 19:58:08 -07:00
parent 349d52e619
commit 919194d908
6 changed files with 15 additions and 5 deletions

View file

@ -175,7 +175,7 @@
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
android:visibility="gone" android:visibility="gone"
android:animateLayoutChanges="true" android:animateLayoutChanges="true"
/> android:importantForAutofill="no" />
<!-- The scrollable and pull-able feed list. --> <!-- The scrollable and pull-able feed list. -->
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout <androidx.swiperefreshlayout.widget.SwipeRefreshLayout

View file

@ -41,7 +41,8 @@
android:hint="@string/share_comment_hint" android:hint="@string/share_comment_hint"
android:inputType="textCapSentences|textMultiLine" android:inputType="textCapSentences|textMultiLine"
android:singleLine="false" android:singleLine="false"
android:textSize="15sp" /> android:textSize="15sp"
android:importantForAutofill="no" />
<androidx.appcompat.widget.LinearLayoutCompat <androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/container_buttons" android:id="@+id/container_buttons"

View file

@ -24,6 +24,7 @@
android:id="@+id/login_username" android:id="@+id/login_username"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:autofillHints="username"
android:hint="@string/login_username_hint" android:hint="@string/login_username_hint"
android:inputType="textEmailAddress" android:inputType="textEmailAddress"
android:textSize="22sp" /> android:textSize="22sp" />
@ -33,6 +34,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="30dp" android:layout_marginTop="30dp"
android:autofillHints="password"
android:hint="@string/login_password_hint" android:hint="@string/login_password_hint"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="textPassword" android:inputType="textPassword"
@ -103,7 +105,8 @@
android:hint="@string/login_custom_server_hint" android:hint="@string/login_custom_server_hint"
android:inputType="textNoSuggestions|textMultiLine" android:inputType="textNoSuggestions|textMultiLine"
android:textSize="17sp" android:textSize="17sp"
android:visibility="invisible" /> android:visibility="invisible"
android:importantForAutofill="no" />
<TextView <TextView
android:id="@+id/button_reset_url" android:id="@+id/button_reset_url"
@ -165,6 +168,7 @@
android:id="@+id/registration_username" android:id="@+id/registration_username"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:autofillHints="username"
android:hint="@string/login_username_hint" android:hint="@string/login_username_hint"
android:inputType="textEmailAddress" android:inputType="textEmailAddress"
android:textSize="22sp"> android:textSize="22sp">
@ -176,6 +180,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="30dp" android:layout_marginTop="30dp"
android:autofillHints="password"
android:hint="@string/login_password_hint" android:hint="@string/login_password_hint"
android:inputType="textPassword" android:inputType="textPassword"
android:nextFocusDown="@+id/registration_email" android:nextFocusDown="@+id/registration_email"
@ -186,6 +191,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="30dp" android:layout_marginTop="30dp"
android:autofillHints="emailAddress"
android:hint="@string/login_registration_email_hint" android:hint="@string/login_registration_email_hint"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="textEmailAddress" android:inputType="textEmailAddress"

View file

@ -12,6 +12,7 @@
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:singleLine="false" android:singleLine="false"
android:autofillHints="username"
android:inputType="textCapSentences|textMultiLine" /> android:inputType="textCapSentences|textMultiLine" />
</RelativeLayout> </RelativeLayout>

View file

@ -12,6 +12,7 @@
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:singleLine="false" android:singleLine="false"
android:inputType="textCapSentences|textMultiLine" /> android:inputType="textCapSentences|textMultiLine"
android:importantForAutofill="no" />
</RelativeLayout> </RelativeLayout>

View file

@ -13,6 +13,7 @@
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:singleLine="false" android:singleLine="false"
android:inputType="textCapSentences|textMultiLine" android:inputType="textCapSentences|textMultiLine"
android:hint="@string/share_comment_hint"/> android:hint="@string/share_comment_hint"
android:importantForAutofill="no" />
</RelativeLayout> </RelativeLayout>