Add Bottom Shadow In Any Layout Like Cards In Google Now

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...

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *