始终在屏幕上显示键盘输入 [英] Always show the keyboard input on screen

查看:360
本文介绍了始终在屏幕上显示键盘输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有办法强制键盘显示他们的整个屏幕上的输入(顺便说一句,这是如何正确地调用?)。我说的是当你没有足够的空间(或至少当设备决定它时),如图片上的白色输入一样:

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.

编辑:我忘了告诉,这应该在Cordova应用程序中工作。

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

推荐答案

使用此

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

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

这篇关于始终在屏幕上显示键盘输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆