I want to add a light shadow on the right and bottom side of the layout.I tried using android:background=\"@android:drawable/dialog_holo_light_frame\" but it adds a
android:background=\"@android:drawable/dialog_holo_light_frame\"
This is what I referred and it worked.
** 1.Add a plain LinearLayout with grey color, over which add your actual layout, with margin at bottom and right equal to 1 or 2 dp
2.Have a 9-patch image with a shadow and set it as the background to your Linear layout**
Other solutions here