Skip to content

Instantly share code, notes, and snippets.

@sharifulislam52
Created March 2, 2018 11:53
Show Gist options
  • Save sharifulislam52/cd9eed5c142981b9744f1d177e1584f0 to your computer and use it in GitHub Desktop.
Save sharifulislam52/cd9eed5c142981b9744f1d177e1584f0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape
android:shape="rectangle">
<solid android:color="@color/color_name" />
<corners android:radius="7dp"/>
</shape>
</item>
<item android:right="1dp" android:left="1dp" android:bottom="1dp" android:top="1dp">
<shape
android:shape="rectangle">
<solid android:color="@android:color/color_name"/>
<corners android:radius="7dp"/>
</shape>
</item>
</layer-list>
<!-- color_name -->
<!-- add bellow two attributes into view for shadow -->
android:background="@drawable/Android_Drawable_Shadow"
android:elevation="10dp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment