PopupWindow popup = new PopupWindow();
popup.setOutsideTouchable(true);
popup.setTouchInterceptor((v, me) ->
{
//拦截事件,什么都不做
return true;
});
【Android】【UI】PopupWindow点击外部不关闭弹窗
关注
打赏
PopupWindow popup = new PopupWindow();
popup.setOutsideTouchable(true);
popup.setTouchInterceptor((v, me) ->
{
//拦截事件,什么都不做
return true;
});
微信扫码登录