I have an activity with two EditTexts. If, in landscape mode, I select the first EditText, the keyboard that is displayed has a “next” button which should allow me to type in the second EditText. Likewise, the second EditText has a “done” button, which I would like to handle for completing the activity. How can I handle the selection of these buttons?
Share
There is fairly little documentation on how to solve this issue. I found a good solution here. Basically, you can add an IMEoption for each of the EditTexts:
For the first one:
For the second one:
To handle these in the code, try something like this: