Skip to content

Instantly share code, notes, and snippets.

@jinqian
Created May 29, 2013 15:59
Show Gist options
  • Save jinqian/5671438 to your computer and use it in GitHub Desktop.
Save jinqian/5671438 to your computer and use it in GitHub Desktop.
color button with shadow
<?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="#33000000" />
<corners android:radius="4dip" />
</shape>
</item>
<item android:bottom="3dp">
<shape>
<gradient
android:angle="90"
android:centerColor="@color/theme_orange_dark"
android:endColor="@color/theme_orange"
android:startColor="@color/theme_orange"
android:type="linear" />
<stroke
android:width="1dp"
android:color="@color/theme_orange" />
<corners android:radius="4dp" />
</shape>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment