AlexAndro AlexAndro - 27 days ago 11
Android Question

EditText custom background

My question is quite short and simple but I'm unable to find a solution. I wan to make my

EditText
looks like this form:

enter image description here

So, every time the user input a char (
android:inputType="numberDecimal"
), it goes to the next box. (Just display the char into next box no need to display the cursor). It would be nice if this could be done using a single
EditBox
.

I have no other idea than making 5 liniar
EditText
controls and add
TextWatcher
to every one of it forcing it to jump (
focus
) to the next one. But this seems a less elegant solution and more complex.

Has anyone any other ideea?

Answer

just checkout here https://github.com/Philio/PinEntryView as you required "Just display the char into next box no need to display the cursor".

Comments