Reputation: 2409
I have to create a group of EditText s that each can contains 1 character of a pin code with auto flow between like in the following image -
when user tapping the the keyboard, the application moves to the next EditText with out any Intervention of the user. How can it be done?
Upvotes: 0
Views: 1055
Reputation: 5097
It's called PinView, here is a link for PinView.
They have made custom keyboard too. Including back button, and verification code, make changes as per your requirement. It's very good and simple tutorial to achieve this important functionality.
Upvotes: 1
Reputation: 384
Make an array of edit text:
private EditText pinInput[] = new EditText[4];
Then add each EditText in array:
pinInput[0] = (EditText) findViewById(R.id.first);
...
Then implement the functionality by using onTextChanged and onFucusChanged listeners
Upvotes: 1