title: Android edge to edge gradient
body: <p>I am trying to get a gradient inside a rectangle to look like this</p>
  
  <p><a href="https://i.stack.imgur.com/tFUb4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tFUb4.png" alt="enter image description here"></a></p>
  
  <p>The closest I get using following xml is</p>
  
  <p><a href="https://i.stack.imgur.com/c6oBC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c6oBC.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" &gt;
      &lt;gradient
          android:type="radial"
          android:startColor="@color/lightPurple"
          android:endColor="@color/lightGreen"
          android:gradientRadius="600"
          android:angle="270"
          android:centerX="1"
          android:centerY="0"/&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>Is there anything I can do to make my gradient go from the top right corner to bottom left corner?</p>