的EditText上的弹出窗口

的EditText上的弹出窗口

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

问题描述

我在Android 2.2中使用Java开发。我把一个EditText上PopupWindow,它不工作。它就像一个残疾编辑文本,单击编辑文本将不会显示软键盘。我怎样才能在一个popupWindow添加编辑文本?

I am developing on Android 2.2 using Java.I put an editText on a PopupWindow and it's not working.It acts like a disabled edit text, clicking on the edit text won't show the soft keyboard.How can I add an edit text on a popupWindow?

推荐答案

我已经解决了这样的问题:我把 popupWindow.setFocusable(真); 现在它的工作。似乎这处在弹出窗口的编辑文本没有焦点因为弹出窗口没有焦点。

I have resolved the problem like this: I put the popupWindow.setFocusable(true); and now it's working. It seems that the edit text which was on a pop window didn't have focus because the popup window didn't have focus.

这篇关于的EditText上的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 07:40