Created
June 13, 2020 07:08
-
-
Save kishandonga/d1727ff54dff4f8499bf1eb9e736865b to your computer and use it in GitHub Desktop.
Drop Shadow using drawable as like CardView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- Drop Shadow Stack --> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" | |
android:top="1dp" /> | |
<solid android:color="#00bbbdcb" /> | |
<corners android:radius="25dp" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" | |
android:top="1dp" /> | |
<solid android:color="#05bbbdcb" /> | |
<corners android:radius="25dp" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" | |
android:top="1dp" /> | |
<solid android:color="#0abbbdcb" /> | |
<corners android:radius="25dp" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" | |
android:top="1dp" /> | |
<solid android:color="#0fbbbdcb" /> | |
<corners android:radius="25dp" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" | |
android:top="1dp" /> | |
<solid android:color="#14bbbdcb" /> | |
<corners android:radius="25dp" /> | |
</shape> | |
</item> | |
<!-- Background --> | |
<item> | |
<shape> | |
<solid android:color="@android:color/white" /> | |
<corners android:radius="25dp" /> | |
</shape> | |
</item> | |
</layer-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got output as like this