Android: How to prevent the user from entering a specific character -
hi there way prevent user prevent user form entering specific character in edit field? in mu case want prevent user entering "0".
as can see here edittextfield limited digits.
<edittext android:id="@+id/edittext1" android:layout_width="50dp" android:layout_height="35dp" android:layout_marginbottom="2dp" android:maxlength="2" android:inputtype="number"> <requestfocus /> </edittext>
how can prevent them form entering "0" in field?
Comments
Post a Comment