title: Customizing Android Progress bar
body: <p>I am trying to style android progress bar as shown below which have multiple sections in it.</p>
  
  <p><a href="https://i.stack.imgur.com/ov5Im.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ov5Im.png" alt="enter image description here"></a></p>
  
  <p>Which properties need to be changed for that?</p>
  
  <p>Here is my custom xml file.</p>
  
  <pre><code>&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="5dip" /&gt;
    &lt;gradient
      android:angle="270"
      android:centerColor="@color/customeprogresscolor"
      android:centerY="0.5"
      android:endColor="@color/customeprogresscolor"
      android:startColor="@color/customeprogresscolor" /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
  &lt;item android:id="@android:id/progress"&gt;
  &lt;clip&gt;
    &lt;shape&gt;
      &lt;solid android:color="@color/yellowCadmiumLight"/&gt;
    &lt;/shape&gt;
  &lt;/clip&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>