Created
November 7, 2014 22:02
-
-
Save Collosteam/e2cb6a904aa79b0ed746 to your computer and use it in GitHub Desktop.
Android Edit text limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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