Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个扩展 PopupWindow 的类。有什么方法可以假装弹出窗口被取消/使其无法取消(如对话框)?
尝试这个:
window.setTouchable(true); window.setFocusable(false); window.setOutsideTouchable(false);