Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the done button to appear on the soft keyboard?

Tags:

android

So, I do not see a done button on the soft-keyboard. There is the standard enter key, but from my reading I am lead to believe that there could be/should be a done button (when working with an AutoCompleteTextView at least. I have tried adding the following line to my xml, but to no avail:

android:imeActionLabel="Done"

I know Im missing something pretty huge, what is it?

like image 476
providence Avatar asked Mar 21 '11 01:03

providence


1 Answers

The answer was to include

android:singleLine="true"

in the xml for the AutoCompleteTextView. This switches the enter key for next if there are multiple edittexts (and done for the last one), or for done if there is only one edittext.

like image 56
providence Avatar answered Sep 27 '22 18:09

providence