title: android : custom progress bar
body: <p>I want to create Custom ProgressBar with style Spinner as below:</p>
  
  <p><a href="https://i.stack.imgur.com/iEtAB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iEtAB.png" alt="enter image description here"></a></p>
  
  <p>I have tried following way to achieve this:</p>
  
  <p><strong>layout.xml</strong></p>
  
  <pre><code>&lt;ProgressBar
          android:id="@+id/pb_capture_video"
          style="?android:attr/progressBarStyleHorizontal"
          android:layout_width="60dp"
          android:layout_height="60dp"
          android:layout_centerInParent="true"
          android:indeterminate="false"
          android:max="60"
          android:indeterminateDrawable="@drawable/layer_list_progress_bar_background"
          android:progress="30"
          android:progressDrawable="@drawable/layer_list_progress_bar_foreground"/&gt;
  </code></pre>
  
  <p><strong>layer_list_progress_bar_background.xml</strong></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 android:shape="oval"&gt;
          &lt;stroke
              android:width="1dp"
              android:color="@android:color/white" /&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>layer_list_progress_bar_foreground.xml</strong></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/progress"&gt;
      &lt;shape android:shape="oval"&gt;
          &lt;stroke
              android:width="1dp"
              android:color="@color/colorAccent" /&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p>But, I not able to display progress. Output of my code is as below:</p>
  
  <p><a href="https://i.stack.imgur.com/Z0pDQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z0pDQ.png" alt="enter image description here"></a></p>
  
  <p>Am I going wrong somewhere ? Is there anyway I can achieve what I want ?</p>
  
  <p>If it seems this is not the right way, please suggest me some another.</p>