14

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?

providence
  • 29,135
  • 13
  • 46
  • 62
  • I am facing the same issue. Did u get any solution? Your accepted solution is not working for me. – Manoj Aug 05 '13 at 16:15

2 Answers2

21

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.

providence
  • 29,135
  • 13
  • 46
  • 62
  • 1
    Only ... Android sometimes gets "confused" and thinks there's multiple edittexts when there aren't :(. – Adam Mar 20 '13 at 14:11
0

Have a look at this question:

Community
  • 1
  • 1
dave.c
  • 10,910
  • 5
  • 39
  • 62
  • I tried the solution in there, my softkeyboard still lacks a done button. I am quite confused. I have also tried to add it using java: autocomplete.setImeOptions(EditorInfo.IME_ACTION_DONE);" but no luck there either – providence Mar 21 '11 at 01:33