Skip to content

Instantly share code, notes, and snippets.

@Antarix
Created February 7, 2013 03:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Antarix/4728217 to your computer and use it in GitHub Desktop.
Save Antarix/4728217 to your computer and use it in GitHub Desktop.
Round background image drawable for android
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<stroke android:width="1dp" android:color="#FFFFFF" />
<gradient
android:startColor="#679031"
android:centerColor="#679031"
android:endColor="#679031"
android:angle = "270" />
<padding android:left="3dp"
android:top="3dp"
android:right="3dp"
android:bottom="3dp"/>
</shape>
</item>
</selector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment