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 Reply

Your email address will not be published. Required fields are marked *