Created
February 4, 2015 10:52
-
-
Save fazlurr/4f6d380ee8912004ee0c to your computer and use it in GitHub Desktop.
Android : Creating a Drop Shadow in XML Layouts - http://www.uifuel.com/android-creating-a-drop-shadow-in-xml-layout/ - http://stackoverflow.com/a/17744914
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:top="1dp" android:right="1dp" android:bottom="1dp" android:left="1dp" /> | |
<solid android:color="#00CCCCCC" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding android:top="1dp" android:right="1dp" android:bottom="1dp" android:left="1dp" /> | |
<solid android:color="#10CCCCCC" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding android:top="1dp" android:right="1dp" android:bottom="1dp" android:left="1dp" /> | |
<solid android:color="#20CCCCCC" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding android:top="1dp" android:right="1dp" android:bottom="1dp" android:left="1dp" /> | |
<solid android:color="#30CCCCCC" /> | |
</shape> | |
</item> | |
<item> | |
<shape> | |
<padding android:top="1dp" android:right="1dp" android:bottom="1dp" android:left="1dp" /> | |
<solid android:color="#50CCCCCC" /> | |
</shape> | |
</item> | |
<!-- Background --> | |
<item> | |
<shape> | |
<solid android:color="@color/white" /> | |
<corners android:radius="3dp" /> | |
</shape> | |
</item> | |
</layer-list> |
Thanks you saved my time
Thank you very much! You saved my time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanx