I have to implement an application in which I have set small edittext
for input PIN number and Mobile Number. Each edit text contain 1 character at a time.
Now when I run this app, I found that for each box I need to give focus to each edittext
.
So in this case is it possible to set focus in next edittext after character is entered in first and then goto third after character is entered in second.
so please help me out this
Here is layout image.
Add a text change listener
and then when you get Edittext's text length is 1.
Call
requestFocus()
on the other EditText..CODE: (This code is for your understanding, It may be different on your case and your need)
Use this Code
This should work fine. mPinFirst and so on are the EditTexts representing each Pin entry. Should also take care of backspacing.