I have a problem with the keyboard. I have a ListView
with edit texts, and when the keyboard opens for the first time the Done button is displayed instead of Next. The problem is that I need to use adjustResize
in the AndroidManifest.xml and the list is moved up when the keyboard is displayed, so I think this is why the keyboard is not working properly.
How can I solve this issue?
First you need to set the android:imeOptions attribute equal to “actionDone” for your target EditText as seen below. That will change your 'RETURN' button in your EditText's soft keyboard to a 'DONE' button.
The Android system shows an on-screen keyboard—known as a soft input method—when a text field in your UI receives focus.
Add android:imeOptions="actionDone"
to the field where you need a done button on your keyboard.
Add android:imeOptions="actionNext"
to the field where you need a next button.
Also, ime has many option buttons like go, send, search, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With