// you can add length limit to edit text using InputFilter .
InputFilter lengthFilter = new InputFilter.LengthFilter(30);
editText.setFilters(new InputFilter[]{lengthFilter});
//want one line of text from the user
editText.setSingleLine(true);
Blog completely focused on android question-answer.
Comments
Post a Comment