Access next android event button

I don’t know if this is very clear, but I try to do something when the “next” button is pressed (lower right corner of the keyboard) and I can’t find its code. I tried to find the “next” or “enter” in the key codes, but nothing really relevant ... does anyone know?

(in fact, I found the input code to be exact, but it does nothing)

+4
source share
1 answer

Call setOnEditorActionListener() on the EditText and point EditText appropriate value for android:imeActionId and a suitable value for android:imeOptions (for example, "actionSearch" ). The listener that you provide setOnEditorActionListener() will be notified when the user removes this button.

+4
source

Source: https://habr.com/ru/post/1308645/


All Articles