What\'s the best way to limit the text length of an EditText in Android?
EditText
Is there a way to do this via xml?
EditText editText = new EditText(this); int maxLength = 3; editText.setFilters(new InputFilter[] {new InputFilter.LengthFilter(maxLength)});