android maxlength edittext code example
Example: edit text maxLength android programmatically
et.setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxLength)});
et.setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxLength)});