问题
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