What’s the best way to limit text length of EditText in Android

What’s the best way to limit the text length of an EditText in Android?

Is there a way to do this via xml?

2Best Answer
21

Documentation

Example

android:maxLength="10"

Leave a Comment