Skip to content

Instantly share code, notes, and snippets.

@libinbensin
Forked from biokys/card_layout
Created September 23, 2015 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libinbensin/dcb47f7b289764e1fde5 to your computer and use it in GitHub Desktop.
Save libinbensin/dcb47f7b289764e1fde5 to your computer and use it in GitHub Desktop.
Card layout with bottom shadow
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle"
android:dither="true">
<corners android:radius="@dimen/card_corner_radius"/>
<solid android:color="#bbb" />
</shape>
</item>
<item android:bottom="2dp">
<shape android:shape="rectangle"
android:dither="true">
<corners android:radius="@dimen/card_corner_radius" />
<solid android:color="@color/card_background" />
<stroke android:color="#bbb" android:width="1px"/>
</shape>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment