title: Transparent black gradient shape drawable color code
body: <p><img src="https://i.stack.imgur.com/yW8Mn.png" alt="gradient for view pager indicator"></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;gradient 
          android:startColor="#000"
          android:centerColor="#00000000"
          android:endColor="#000"
          android:angle="270"
          android:dither="true"
       /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>This is the code I tried but it ends up as pure black.</p>