Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove maxLength set from EditText

As we know, maxLength for EditText is set by:

android:maxLength="19"

or programmatically. My question is that how can I remove this maxLength programmatically if it was set to certain length? I want to set maxLength to the maximum length possible.

like image 838
Muhammadjon Avatar asked Dec 21 '25 00:12

Muhammadjon


1 Answers

Just try to set empty InputFilter Array for remove the Max Length.

etEmail.filters = arrayOf<InputFilter>()
like image 127
Divyesh Rudani Avatar answered Dec 22 '25 12:12

Divyesh Rudani