I need to create custom EditText
so it will look like this:
I need it to be single EditText
. Is it possible to do it, or do I need to create EditText
for every character?
I need to create custom EditText
so it will look like this:
I need it to be single EditText
. Is it possible to do it, or do I need to create EditText
for every character?
Yes it is possible! create multiple edit text's depending on the number of characters you want to accept as input and make sure to limit the size of each edit text to 1
android:maxLength="1"
You can set the width of each edit text and place them horizontally one after the other
You can create custom
EditText
by extending it. And you have to implement addTextChangeListener and their you can draw whatever you want. But No need to re Invent the wheel
And you can also use some build in customView
like
Also have a look at this