title: android circle progressbar
body: <p>I need to make a circle progress bar, which rotate only while data is receiving. I wrote in layout:</p>
  
  <pre><code>        &lt;ProgressBar
              android:id="@+id/progress_bar"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:indeterminateOnly="true"
              style="?android:attr/progressBarStyleSmall"
              /&gt;
  </code></pre>
  
  <p>And then the part of data was received, I do </p>
  
  <pre><code>mProgressBar.incrementProgressBy(10);
  </code></pre>
  
  <p>I thought that initially mProgressBar should be stopped, but it is rotating permanently, even than connection is not established!</p>
  
  <p>What should I do to make ProgressBar initially stopped &amp; and rotating while another part of data was received?</p>