title: Android Custom ProgressBar not Rotating
body: <p>I want to change the default animation of a <code>ProgressBar</code>, so I added a custom style in my theme:</p>
  <h1>styles.xml</h1>
  <pre><code>&lt;style name=&quot;ProgressTheme&quot; parent=&quot;@android:style/Widget.ProgressBar.Large&quot;&gt;
      &lt;item name=&quot;android:indeterminateDrawable&quot;&gt;@drawable/spinner_holo_light&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  <p>I am calling this style inside my <code>ProgressBar</code> with the following:</p>
  <h1>ProgressBar.xml</h1>
  <pre><code>&lt;ProgressBar
      android:id=&quot;@+id/loadingProgressBar&quot;
      style=&quot;@style/ProgressTheme&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot; /&gt;
  </code></pre>
  <p>The problem lies inside the <code>spinner_holo_light.xml</code>:</p>
  <p>If I use the following, everything works fine on devices with os 3.0+, but the progress does not rotate on older os versions:</p>
  <h1>spinner_holo_light.xml</h1>
  <pre><code>&lt;rotate xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:drawable=&quot;@drawable/spinner_76_inner_holo&quot;
      android:fromDegrees=&quot;720&quot;
      android:pivotX=&quot;50%&quot;
      android:pivotY=&quot;50%&quot;
      android:toDegrees=&quot;0&quot; /&gt;
  </code></pre>
  <p>But if I use <code>animate-rotate</code> instead, the animation works on every os version, but the result is a very laggy animation.</p>
  <pre><code>&lt;animated-rotate xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:drawable=&quot;@drawable/spinner_76_inner_holo&quot;
      android:fromDegrees=&quot;720&quot;
      android:pivotX=&quot;50%&quot;
      android:pivotY=&quot;50%&quot;
      android:toDegrees=&quot;0&quot; /&gt;
  </code></pre>
  <p>What do you think about it? Am I doing something wrong here?</p>