Skip to content

Instantly share code, notes, and snippets.

@lecho
Created September 7, 2013 07:01
Show Gist options
  • Save lecho/6473458 to your computer and use it in GitHub Desktop.
Save lecho/6473458 to your computer and use it in GitHub Desktop.
Android shadow drawable xml.
<?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="#00CCCCCC" />
<corners android:radius="3dp" />
</shape>
</item>
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<solid android:color="#10CCCCCC" />
<corners android:radius="3dp" />
</shape>
</item>
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<solid android:color="#20CCCCCC" />
<corners android:radius="3dp" />
</shape>
</item>
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<solid android:color="#30CCCCCC" />
<corners android:radius="3dp" />
</shape>
</item>
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<solid android:color="#50CCCCCC" />
<corners android:radius="3dp" />
</shape>
</item>
<!-- Background -->
<item>
<shape>
<solid android:color="@android:color/white" />
<corners android:radius="3dp" />
</shape>
</item>
</layer-list>
@johngorithm
Copy link

Thanks 🙏🏻

@debbebicomjm
Copy link

Thanksssss ^^^

@gabriel-TheCode
Copy link

Thank you very much !

@JainamSB
Copy link

JainamSB commented Jan 2, 2020

thanksssssssssssssss

@iikimamhambali
Copy link

Cool man, Thank you

@MoonHyekyung
Copy link

Thank you!!!

@vanjoe667
Copy link

wow, you a life save man, thanks a million

@tachyondev
Copy link

Thanks!

@Ediro43
Copy link

Ediro43 commented Jul 21, 2020

Thank you very much! I have been trying to make a shadow shape for more than two hours.

@kranthi-chandra
Copy link

kranthi-chandra commented Sep 16, 2020

perfect! finally found, thank you!

@santiihoyos
Copy link

santiihoyos commented Oct 1, 2020

✌🏻👌🏻🥳
Cuando vengas a España te invito a una caña jajaja

@thang-uit
Copy link

Thank you, bro! This code helps my project a lot!

@mussacharles60
Copy link

Thanks

@juliaalim
Copy link

exactly what i've been looking for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment