Coderwall created a layer list XML drawable in order to achieve this. A big thanks to him! This is how the XML file mydrawable.xml looks like:

Make sure you place this in the drawable folder.

To use this, simple set it as the value of the android:background attribute of any layout in your XML.

Related Posts Plugin for WordPress, Blogger...