Android Question How to keep the current EditText at Select when multiple EditText switches?

winjiadh

Active Member
Licensed User
Longtime User
My APP has multiple EditText.
I want to click on EditText to get the contents of EditText SelectAll.
B4X:
Sub txtUser_FocusChanged (HasFocus As Boolean)
    txtUser.RequestFocus
    txtUser.SelectAll
End Sub

Sub txtPass_FocusChanged (HasFocus As Boolean)
    txtPass.RequestFocus
    txtPass.SelectAll
End Sub

Sub txtPhone_FocusChanged (HasFocus As Boolean)
    txtPhone.RequestFocus
    txtPhone.SelectAll
End Sub
when I run,the phone is run busy
How to change the Focus for EditText when the EditText.SelectAll?

When I Stepin ,and the sub for run always
1.jpg
2.jpg
 
Last edited:
Top