PopupWindow 中含有EditText控件,当弹出PopupWindow对话框后,点击固定的按钮可以让PopupWindow消失,PopupWindow本身是可聚焦,只要PopupWindow是弹出状态,EditText都是可编辑的,这个要怎么实现,popupWindow.setFocusable(true);popupWindow.setOutsideTouchable()是失效的
pw.setOutsideTouchable(true);点击外部可消失。它的前提是pw.setFocusable(false);不然你可以看看api里面的说明
https://blog.csdn.net/androidwubo/article/details/81507374
pw.dismiss();点击关闭。
pw.setFocusable(true);内部可获取焦点。
pw.setOutsideTouchable(true);点击外部可消失。