聚焦的EditText在弹出窗口中进入活动睡眠

聚焦的EditText在弹出窗口中进入活动睡眠

本文介绍了聚焦的EditText在弹出窗口中进入活动睡眠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android项目将的EditText PopupWindow 。当设置 PopupWindow.setFocusable 来的假,软键盘将不显示。而当设置 PopupWindow.setFocusable 来真,的EditText 集中和活动去睡觉!
在弹出窗口中其他项目的工作,但返回键在手机上,然后点击弹出外不会关闭它。
先谢谢了。

I place an EditText on a PopupWindow in my android project. When set PopupWindow.setFocusable to the false, the soft keyboard will not be show. And when set PopupWindow.setFocusable to the true, the EditText is focused and activity go to sleep!Other item on the pop up window works, but back button on the phone and clicking outside the pop up does not close it.Thanks in advance.

推荐答案

我只设置 setBackgroundDrawable PopupWindow 的。一切似乎是OK!我惊愕!

I just set setBackgroundDrawable of PopupWindow. Everything seems be OK! I'm in consternation!!

这篇关于聚焦的EditText在弹出窗口中进入活动睡眠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 13:37