Is it possible that the code is missing there? I do not see that you are adding pop to the view.
In any case, to remove the shadow, you must use this line of code in PopupWindow:
this.getWindow().setBackgroundDrawable(new ColorDrawable(0));
At least what worked for me ...
Hooray!
source share