Created
January 24, 2020 01:08
-
-
Save newarifrh/12b5aa280a5552ec391fb66f1374b761 to your computer and use it in GitHub Desktop.
Custom shadow
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
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
///Shadow Top | |
<item> | |
<shape | |
android:shape="rectangle"> | |
<stroke android:width="3dp" android:color="#88FFFFFF" /> | |
<padding android:top="3dp"/> | |
<corners android:radius="10dp"/> | |
</shape> | |
</item> | |
///Shadow Left | |
<item> | |
<shape | |
android:shape="rectangle"> | |
<stroke android:width="3dp" android:color="#88FFFFFF"/> | |
<padding android:left="3dp"/> | |
<corners android:radius="10dp"/> | |
</shape> | |
</item> | |
///Shadow Bottom | |
<item> | |
<shape | |
android:shape="rectangle"> | |
<stroke android:width="3dp" android:color="#80000000" /> | |
<padding android:bottom="3dp"/> | |
<corners android:radius="10dp"/> | |
</shape> | |
</item> | |
///Shadow Right | |
<item> | |
<shape | |
android:shape="rectangle"> | |
<stroke android:width="3dp" android:color="#80000000"/> | |
<padding android:right="3dp"/> | |
<corners android:radius="10dp"/> | |
</shape> | |
</item> | |
//Bg | |
<item> | |
<shape | |
android:shape="rectangle"> | |
<corners android:radius="10dp"/> | |
<solid android:color="#EF9A9A" /> | |
</shape> | |
</item> | |
</layer-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment