I'm looking for the easiest way to set a shadow layer around my PopupWindow to increase its visibility. I've looked at solutions involving making a custom-9-patch-graphic but that seems hard to customize dynamically (my PopupWindow is showing different content depending on input and such, and as such it is of different sizes). In XML its designed as a Box implemented as a RelativeLayout with transparent background.
(Some random example I found on Google. Kind of what I want though.)