Skip to content

Instantly share code, notes, and snippets.

@lilac
Created July 23, 2015 07:25
Show Gist options
  • Select an option

  • Save lilac/9f2160de260903af9a26 to your computer and use it in GitHub Desktop.

Select an option

Save lilac/9f2160de260903af9a26 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="0"
android:startColor="#f00"
android:centerColor="@android:color/transparent"
android:centerX="0.01" />
</shape>
@lilac

lilac commented Jul 23, 2015

Copy link
Copy Markdown
Author

Change the angle to change border location:

0 = left
90 = bottom
180 = right
270 = top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment