title: How to change the speed of ProgressBar in Android using Java?
body: <p>I have a <code>ProgressBar</code> (the round shape one) and it spins very fast, how do I change it to spin at a slower speed?</p>
  <p>(It is running indefinitely)
  <br><br><br>
  Edit: Here is my XML of <code>ProgressBar</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;ProgressBar
          android:id=&quot;@+id/progressBar&quot;
          style=&quot;@style/Widget.AppCompat.ProgressBar&quot;
          android:layout_width=&quot;409dp&quot;
          android:layout_height=&quot;710dp&quot;
          android:indeterminate=&quot;false&quot;
          android:padding=&quot;36dp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  </code></pre>