为什么虚拟键盘没有消失? [英] Why doesn't the virtual keyboard go away?

查看:169
本文介绍了为什么虚拟键盘没有消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的屏幕,其中包含几个EditText小部件和一个按钮.在模拟器中,当我单击EditText小部件时,将出现一个虚拟键盘.但是,我似乎无法摆脱它.单击屏幕上的空白不会使其消失.仅单击虚拟返回"键或硬件后退"按钮,该键便消失.

I have a pretty simple screen with a couple of EditText widgets and a button. In the emulator, when I click on the EditText widget, a virtual keyboard comes up. However, I can't seem to get rid of it. Clicking on an empty space on the screen does not make it go away. Only clicking the virtual Return key or the hardware Back button makes it disappear.

我没有真正的Android手机,所以这是模拟器唯一的事情,还是在实际设备上会是这样?如果是这样,当我单击窗体上的其他位置时,该如何做才能使虚拟键盘消失?

I don't have a real Android phone handy, so is this an emulator only thing or will it be like this on the actual device. If it is, what can I do to make the virtual keyboard go away, when I click elsewhere on the form?

推荐答案

AngryHacker,我将向您推荐该帖子

AngryHacker , I woud refer you to this post how to close/hide the android soft keyboard.

希望这会有所帮助.

这篇关于为什么虚拟键盘没有消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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