title: Android shape border with gradient
body: <p>I want to create a border for a linearLayout. So I decide to create a shape. I want the border to have a gradient. The following is not doing it. It fills the rectangle and then creates a stroke. I don't want a filled rectangle, just the stroke. And I want to apply the gradient to the stroke.</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:angle="360"
          android:centerColor="#e95a22"
          android:endColor="#ff00b5"
          android:gradientRadius="360"
          android:startColor="#006386"
          android:type="sweep" /&gt;
  
      &lt;stroke
          android:width="2dp"
          android:color="#ff207d94" /&gt;
  
  &lt;/shape&gt;
  </code></pre>