I would like to see the maxLength of an EditText at run time to be able to make a text display decision. Is that possible?
maxLength
EditText
Here is a de
From api 21 you can do it like that:
for (InputFilter filter : mEditText.getFilters()) { if (filter instanceof InputFilter.LengthFilter) { ((InputFilter.LengthFilter) filter).getMax()); } }
I hope this helps someone.