Always show the keyboard input on screen

谁都会走 提交于 2019-12-11 12:32:36

问题


Is there a way to force keyboards to show their whole onscreen input (and, by the way, how is this correctly called?). I'm talking about the one that appears when you don't have enough space (or at least when the device decides it), like the white input on this picture:

I'd like it to be even on portrait screens of an app.

I've been searching for this, but it turns difficult to search something you don't know how it's called.

Edit: I forgot to tell, this should work in a Cordova app.


回答1:


Use this

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(autoSuggestionTextView,InputMethodManager.SHOW_IMPLICIT);



来源:https://stackoverflow.com/questions/25991480/always-show-the-keyboard-input-on-screen

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