title: Stop the progress bar from spinning and diisplaying the results entered?
body: <p>I am creating an app that will get numbers between 0-100 from the user, then getting the average and displaying it in a progress bar. For example the user enters 100, 80 and 75 the total is 255 and the average is 85 so i would like the progress bar to fill 3/4 of the circle and stop. At the moment the progress bar keeps spinning in circles and doesn't stop at the location I want even when I specify it with  <code>.setProgress(85)</code>. Could anybody help me out I'm quite stuck here's my code:</p>
  
  <p>xml:</p>
  
  <pre><code>    &lt;ProgressBar
      android:id="@+id/mProgressBar"
      android:layout_width="150dp"
      android:layout_height="150dp"
      android:layout_centerInParent="true"
      android:rotation="-90"/&gt;
  </code></pre>
  
  <p>java:</p>
  
  <pre><code>    mProgressBar = (ProgressBar) findViewById(R.id.mProgressBar);
      mProgressBar = new ProgressBar(ActivityA.this, null,    android.R.attr.progressBarStyleLarge);
      mProgressBar.setProgress(30);
      mProgressBar.setMax(100);
  </code></pre>