Skip to content

Instantly share code, notes, and snippets.

@Collosteam
Created November 7, 2014 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Collosteam/e2cb6a904aa79b0ed746 to your computer and use it in GitHub Desktop.
Save Collosteam/e2cb6a904aa79b0ed746 to your computer and use it in GitHub Desktop.
Android Edit text limit
EditText input = ...
InputFilter[] FilterArray = new InputFilter[1];
FilterArray[0] = new InputFilter.LengthFilter(limit);
input.setFilters(FilterArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment