I have 2 EditText’s in my layout.
In the first I shuld put the email adress and in the second the password.
I can look if the email format is good with this code :
android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches()
and I would like to block the focus on the email editText until the email format verificationt returns true.
I don’t know how to do this, which listener have to be used and how to bloc this focus?
Thank you.
Hi i think below code should help you.