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