Handle EditText key change event with input type TEXT
问题 My Use case is to restrict user after he has entered 4 lines in text box. Setting maxLines will not work to stop user. I am surprise that Android is not providing key down/up event when input type is InputType.TYPE_CLASS_TEXT . I am receiving event for all other types. Below is my code. EditText et = new EditText(this); et.setMaxLines(3); et.setSingleLine(false); et.setInputType(InputType.TYPE_CLASS_TEXT); et.setHint("First edit text"); et.setKeyListener(this); // This key listener is also