I\'m using 9-patch to produce drop shadow for a box. If the image width is at 280dp (20dp off the edge of the box), I get a good drop shadow (@315 degrees):
Reduce your top and left black border to 1 px (the stretchable area).
Like so:
Optionally, you can also reduce the right and bottom black border by some pixels (to introduce some padding).
Like so:
Optionally, you can add some blank (transparent) space (let's say 4px per side) between the image (shadow included) and the black borders.
This will add some padding.
OR
You can add some padding to your RelativeLayout