隐藏Android键盘按键预览 [英] Hide Android keyboard key preview

查看:60
本文介绍了隐藏Android键盘按键预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是仅隐藏弹出窗口,这些弹出窗口显示您在使用软键盘时当前按的键.这可能吗?我正在创建自己的新键盘,不需要它们.

据我所知,下面的图片是您可以选择使用 android:popupKeyboard android:popupCharacters 中显示的实际弹出键盘> Keyboard.Key XML.

但是下面的图像不相同相同(另请参见:

我指的是按键预览",它是显示放大的按下按键的弹出窗口".默认情况下,启用预览,但要禁用它,只需 setPreviewEnabled(boolean PreviewEnabled).这是 KeyboardView 类中的方法. API .

What I'm looking to do is hide only the popups that show what key you are currently pressing while using a soft keyboard. Is this possible? I am creating my own new keyboard which will have no need for them.

From what I think I understand, the picture below is the actual popup keyboard that you can choose to show using android:popupKeyboard and android:popupCharacters in the Keyboard.Key XML.

But the image below is not the same (also see this picture). Is there a way to turn the following off, using XML or even programmatically?

解决方案

After reading a little bit of the actual android keyboard source code:

What I was referring to was the "key preview", which is "a popup that shows a magnified version of the depressed key." By default the preview is enabled, but to disable it, simply enough, is setPreviewEnabled(boolean previewEnabled). Which is a method from the KeyboardView class. API.

这篇关于隐藏Android键盘按键预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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