Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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>
@isamercan

This comment has been minimized.

Copy link

commented Jul 31, 2017

thanks :)

@ozmium

This comment has been minimized.

@Fatimamostafa

This comment has been minimized.

Copy link

commented Dec 28, 2017

How can I make this a smooth shadow? It's somewhat pixelated in view.

@JangChanSig

This comment has been minimized.

Copy link

commented Feb 23, 2018

thank you so so so much. it perfect shadow button i have been looking for

@auyanik

This comment has been minimized.

Copy link

commented Apr 19, 2018

thank you so muchhhhh. perfect

@RahulSDeshpande

This comment has been minimized.

Copy link

commented Apr 20, 2018

Sorry, I think this is not at all the solution, its just the workaround.

@pradeep2424

This comment has been minimized.

Copy link

commented Jul 30, 2018

thanks.. exactly what i was looking ;-)

@limkokhole

This comment has been minimized.

Copy link

commented Sep 14, 2018

This is the only solutions work as desired after I google for few hours, thanks.

@DanielyBotelho

This comment has been minimized.

Copy link

commented Nov 13, 2018

thanks!

@Joe-Mobarak-WoLf

This comment has been minimized.

Copy link

commented Jan 30, 2019

Sweet

@ayebmehdi2

This comment has been minimized.

Copy link

commented Feb 5, 2019

thannnk you

@tusharpandey

This comment has been minimized.

Copy link

commented May 14, 2019

Yoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo big thank you .

@phamthelong

This comment has been minimized.

Copy link

commented May 15, 2019

thanks you

@DaeJunLee

This comment has been minimized.

Copy link

commented Jun 12, 2019

Thank you..

@huuphudn2017

This comment has been minimized.

Copy link

commented Aug 26, 2019

Thanks youuuu ^^

@johngorithm

This comment has been minimized.

Copy link

commented Sep 15, 2019

Thanks 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.