Welcome to – your online plain text editor. Restricting to 10 characters onlyĮtFilters(new InputFilter) You can use attach a filter to Editables by calling setFilters() method. However, you can always write your own filter implementation using InputFilter interface. For example, you want to allow the maximum of 10 characters to be entered, or you want to allow only uppercase characters.Īndroid SDK comes handy with set of basic filters such as AllCaps and LengthFilter. An InputFilter can be attached to an EditText to constrain the changes that can be made to them. EditText in Android is one of the basic UI widget used for user data input.
0 Comments
Leave a Reply. |