现在的位置: 首页 > 综合 > 正文

使用PopupWindow出现的错误

2013年08月02日 ⁄ 综合 ⁄ 共 248字 ⁄ 字号 评论关闭

转自:http://bbs.csdn.net/topics/370055202?page=1#post-393445257

报 错:

at android.widget.PopupWindow$PopupViewContainer.dispatchKeyEvent

解决:

创建PopupWindow 的时候 不要调用 setFocusable(true);
在showAtLocation后在调用setFocusable(true);

并且在 dismiss的时候 调用setFocusable(false);

抱歉!评论已关闭.