I have a PopupWindow and it is setFocusable(false), I want to dismiss it when touch outside, and it is already setOutsideTouchable(true), but with the setFocusable(false) it doesn't work, how can I solve this? Thanks in advance.
All the properties being set to my PopupWindow are as follows:
popUpWindow.setBackgroundDrawable(xx);
popUpWindow.setTouchable(true);
popUpWindow.setFocusable(false);
popUpWindow.setOutsideTouchable(true);
popUpWindow.setAnimationStyle(android.R.style.Animation_Dialog);
popUpWindow.update();
update:
I was wrong, the PopupWindow dismissed, but some other code make it show.