I need to perform a function with the "Enter" keyboard in EditText
.
They did not work:
android:maxLines="1"
: it skips fields
android:imeOptions="actionNext"
: it executes with the "next" button of the virtual keyboard
setOnKeyListener
with keyCode == KeyEvent.KEYCODE_ENTER
: blocks EditText and does not let you enter anything.