PopupWindow如何在外部点击消失和返回键

    xiaoxiao2021-03-25  29

    添加如下代码

    mPopupWindow.setBackgroundDrawable(new PaintDrawable()); //设置点击窗口外边窗口消失 mPopupWindow.setOutsideTouchable(false); // 设置此参数获得焦点,否则无法点击 mPopupWindow.setFocusable(true);
    转载请注明原文地址: https://ju.6miu.com/read-50412.html

    最新回复(0)