1
I need to execute a function with the keyboard "Enter" on EditText
.
Did not work:
android:maxLines="1"
: he jumps fields
android:imeOptions="actionNext"
: it runs with the "next" button of the virtual keyboard
setOnKeyListener
with keyCode == KeyEvent.KEYCODE_ENTER
: blocks Edittext and lets you insert nothing.