I have a PopupWindow and I wanted it to dismiss when the user touches outside, so I looked into and found out that I had to use popup.setBackgroundDrawable(new BitmapDrawa
popup.setBackgroundDrawable(new BitmapDrawa
You could try.
popup.setBackgroundDrawable(new BitmapDrawable(getResources(), ""));