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

hpique picture hpique · Jul 19, 2010 · Viewed 558.1k times · Source

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

Is there a way to do this via xml?

Answer

Austin Hanson picture Austin Hanson · Jul 19, 2010

Documentation

Example

android:maxLength="10"