View with Solid Background and Top+Bottom Inner Shadows

Viewed 17481

Essentially, I am trying to create the following background: enter image description here

The traditional gradient which use in the drawable that I use for background only supports start color, middle color and end color.

However, as you can see from the mockup, I am trying to create only a slight overlay/shadow at the top and bottom of the shape, with a #50000000 color (black with 50% opacity).

4 Answers
Related