In my android application I have to implement something like the image given below :
I have tried using shadow xmls for a linear layout but it doesn't seem to work out the way i want it to be. The code that I am using is :
<?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="5dp" android:left="5dp" android:bottom="15dp">
<shape
android:shape="rectangle">
<solid android:color="@android:color/white"/>
<corners android:radius="5dp"/>
</shape>
</item>
</layer-list>
Please suggest how can I achieve this.