setImeOptions: why the “Done” button does not show on the soft keyboard?

怎甘沉沦 提交于 2019-12-02 21:57:40

It's probably because your input field is not single-lined.

Try adding

input.setSingleLine();

And you will see that pressing the action key of the keyboard will actually perform a 'done' action (i.e close the keyboard)

See http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html#IME_ACTION_DONE

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!