I've a form with 2 fields, after First login, i store the Mail in SharedPreferences and i restore when user start app again, But how to set focus on Pass Field ? it's not very nice to see that mail is fill but focus is still on mail field.
Thanks
<EditText
android:id="@+id/Email"
android:text=""
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/labelEmail"
android:inputType="textEmailAddress"
android:padding="10px">
</EditText>
<EditText
android:id="@+id/Pass"
android:text=""
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/labelPass"
android:padding="10px"
android:inputType="textPassword"
android:password="true">
</EditText>
Block Interruptions. On Android's Digital Wellbeing screen, tap Focus Mode. Choose the Set a Schedule option to block out the timeout you need from your phone. In the “Your distracting apps” list, select the programs you'd like to disable when Focus Mode is on.
Call requestFocus()
on the password field.
http://developer.android.com/reference/android/view/View.html#requestFocus()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With