providence
providence

Reputation: 29463

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

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?

Upvotes: 14

Views: 10297

Answers (2)

providence
providence

Reputation: 29463

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.

Upvotes: 21

dave.c
dave.c

Reputation: 10908

Have a look at this question:

Upvotes: 0

Related Questions