title: Gradient not working for Lollipop API 21
body: <p>Here is the gradient.xml that I am applying on my ImageView. </p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
         android:shape="rectangle"&gt;
      &lt;gradient
          android:angle="180"
          android:endColor="#BF000000"
          android:startColor="#00000000"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>I did look at this post - <a href="https://stackoverflow.com/questions/27384655/android-gradient-on-lollipop-not-working-api-21">Android Gradient on Lollipop not working. - API 21</a>, but my problem is, im not using radial gradient. Hence Im not including gradientRadius in my xml file. </p>
  
  <p>Any easy way to fix this? </p>
  
  <p>If nothing works them I was thinking of creating a new bitmap, applying a gradient to it and then setting that to the ImageView [I know, its ugly]. </p>
  
  <p>Any help will greatly be appreciated. </p>