如何显示在PopupWindow键盘? [英] How to show keyboard on PopupWindow?
本文介绍了如何显示在PopupWindow键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 PopupWindow
类和 PopupWindow
我有一个的EditText
,我的问题是,当 PopupWindow
是可见的,我当时的软键盘点击的EditText
是不可见的,我不能够进入输入。谁能告诉我怎么解决这个问题呢?
I am using PopupWindow
class and on PopupWindow
I have one EditText
, my problem is that when PopupWindow
is visible and I click on EditText
at that time the soft keyboard is not visible and I am not able to enter Input. Can anybody tell me how to solve this problem?
推荐答案
当你创建一个新的 PopupWindow
,使用另一个构造方法,你必须设置可聚焦= TRUE;
只认为可能成为焦点,软键盘将显示
When you create a new PopupWindow
, use another constructor method, you must set the focusable = true;
only the view could be focusable, the soft keyboard will show .
public PopupWindow(View contentView, int width, int height, boolean focusable) {}
默认聚焦的是假
这篇关于如何显示在PopupWindow键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文