I have an EditText view which I want to catch event from the Enter key. I have tried the KEYCODE_ENTER keycode event, using the IME_ACTION_X options in the OnEditorActionListener class, the textChangedListener to check for newline or carriage return, and even the KeyListeners, but to no avail. None can catch the enter event. My goal is to catch the Enter key event so as to perform some checking before the cursor goes to the next new line in a multiline EditText view. How do I catch this event?
0 comments:
Post a Comment