简体   繁体   English

始终在屏幕上显示键盘输入

[英]Always show the keyboard input on screen

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: 我说的是当您没有足够的空间时(或至少在设备决定时)出现的图像,例如这张图片上的白色输入:

键盘打开时整个屏幕输入。 Galaxy Note 3

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. 编辑:我忘了告诉大家,这应该在Cordova应用程序中有效。

Use this 用这个

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM