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>
@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