Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Done button instead of Next

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?

like image 234
Laura Avatar asked Oct 01 '13 07:10

Laura


People also ask

How do I change the Done button on my Android keyboard?

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.

What is Android soft keyboard?

The Android system shows an on-screen keyboard—known as a soft input method—when a text field in your UI receives focus.


1 Answers

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.

like image 167
PriyaFest Avatar answered Oct 06 '22 00:10

PriyaFest