I have a EditText , and I would like to restrict the number of characters which could be inputted in this EditText, and make this
EditText
public void setEditTextMaxLength(int length) { InputFilter[] FilterArray = new InputFilter[1]; FilterArray[0] = new InputFilter.LengthFilter(length); edt_text.setFilters(FilterArray); }