由网友(头号可爱)分享简介:我在Android 2.2中使用Java开发。我把一个EditText上PopupWindow,它不工作。它就像一个残疾编辑文本,单击编辑文本将不会显示软键盘。我怎样才能在一个popupWindow添加编辑文本?I am developing on Android 2.2 using Java. I put...
我在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.
相关推荐
最新文章