how to create customized edittextbox android? -
i'm trying make customized edit textbox
. when getting string of numbers want present them this:
instead of regular way this:
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.
but maybe need modification on edittext looks textview. example use textview styles component , make unfocusable.
Comments
Post a Comment