Skip to content

Instantly share code, notes, and snippets.

@notdrone-1
Created February 13, 2015 10:50
Show Gist options
  • Save notdrone-1/58e0423d4e7e00488a8d to your computer and use it in GitHub Desktop.
Save notdrone-1/58e0423d4e7e00488a8d to your computer and use it in GitHub Desktop.
Adding gradient
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="@color/material_blue_grey_800"
android:endColor="@color/material_deep_teal_500"
android:angle="-45"/>
</shape>
@notdrone-1
Copy link
Author

in the fragment add background="@drawable/gradient.xm;

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