how to create customized edittextbox android? -


i'm trying make customized edit textbox. when getting string of numbers want present them this:

image 1

instead of regular way this:

image 2

i have tried ways none of them gave me results pictures above, , don't have more ideas.

do have idea how create simply?

now using button widget:

<button     android:id="@+id/licenceplatecontainer"     android:layout_width="@dimen/licenceplate_width"     android:layout_height="@dimen/licenceplate_height"     android:layout_alignparenttop="true"     android:layout_centerinparent="true"     android:layout_marginbottom="20dp"     android:layout_margintop="5dp"     android:background="@drawable/rectangle"     android:text="00-000-00"     android:textsize="45sp" /> 

but problem when number user , setting text:

button btnlicenceplate = (button) findviewbyid(r.id.licenceplatecontainer); btnlicenceplate.settext(txtlicenceplate.gettext().tostring()); 

i losing pattern.

there's nice mask edittext need.

maskededittext

but maybe need modification on edittext looks textview. example use textview styles component , make unfocusable.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -