android PopupWindow的使用

lp。α=1 f;

window.setAttributes (lp);

PopupWindow出现之后,默认的是所有的操作都无效的,除了主键。而且是可以操作后面的

,界面的。想要锁定后面的界面,很简单,只需要让PopupWindow是focusable的。

,,,, popupWindow.setFocusable(真正的);,

5。获取点击区域外的事件

popWindow.setFocusable(真正);

popWindow.setTouchable(真正);

popWindow。setTouchInterceptor (new>,,,,,,,, @Override公共布尔>

,,,,,,,,,,,,如果(popWindow.isShow ()) {

,,,,,,,,,,,,,,//显示popWindow

,,,,,,,,,,,,,,返回true;

,,,,,,,,,,,,},

返回false;

}

});


android PopupWindow的使用