Skip to content Skip to sidebar Skip to footer

Dashed Input Field In Android For Confirmation Codes

I am trying to create a Dashed input field for numbers in android layout, such as ' _ _ _ _ ' where I can add 4 numbers and get them in my main activity. I have searched a lot but

Solution 1:

Use this library to achieve your objective. https://github.com/glomadrian/material-code-input

Solution 2:

Create EditText for 4 dashes and implement OnTextChanged() for every EditText to quickly jump to other input. Make sure the EditText has input type as number and can only allow a single digit. You can create such with this concept.

Post a Comment for "Dashed Input Field In Android For Confirmation Codes"