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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -