Android: How to change focus on the form without user intervention?

I have a form with two fields, after the first login I save Mail in SharedPreferences and restore it when the application is restarted, But how to focus on Pass Field? it’s not very nice to see that the mail is being filled, but the focus is still on the mail field.

thank

<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>
+5
source share
1 answer
+14
source

All Articles