title: How to implement this type of Progressbar in android using xml file
body: <p>How to apply glow effect?</p>
  
  <p>I am trying to create this type of horizontal <code>ProgressBar</code> but no idea about the glowing effect for as starting point of progress.</p>
  
  <p><img src="https://i.stack.imgur.com/H93wZ.jpg" alt="enter image description here"></p>
  
  <p>Here is my code for gradient color</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
      &lt;item android:id="@android:id/background"&gt;
          &lt;shape&gt;
              &lt;corners android:radius="0dip" /&gt;
  
          &lt;solid android:color="#ff9d9e9d"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:id="@android:id/secondaryProgress"&gt;
          &lt;clip&gt;
              &lt;shape&gt;
                  &lt;corners android:radius="5dip" /&gt;
  
              &lt;gradient
                      android:angle="180"
                      android:startColor="#8872f8fc"
                      android:endColor="#886dc0e3" /&gt;
              &lt;/shape&gt;
          &lt;/clip&gt;
      &lt;/item&gt;
      &lt;item android:id="@android:id/progress"&gt;
          &lt;clip&gt;
              &lt;shape&gt;
                  &lt;corners android:radius="5dip" /&gt;
  
                  &lt;gradient
                      android:angle="180"
                      android:startColor="#31c6f7"
                      android:centerColor="#2ea6d1"
                      android:endColor="#2884a6" /&gt;
              &lt;/shape&gt;
          &lt;/clip&gt;
      &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>