How to show shadow around the linearlayout in Android?

There is also another solution to the problem by implementing a layer-list that will act as the background for the LinearLayoout. Add background_with_shadow.xml file to res/drawable. Containing: <?xml version=”1.0″ encoding=”utf-8″?> <layer-list xmlns:android=”http://schemas.android.com/apk/res/android”> <item > <shape android:shape=”rectangle”> <solid android:color=”@android:color/darker_gray” /> <corners android:radius=”5dp”/> </shape> </item> <item android:right=”1dp” android:left=”1dp” android:bottom=”2dp”> <shape android:shape=”rectangle”> <solid android:color=”@android:color/white”/> <corners android:radius=”5dp”/> </shape> </item> … Read more