Smoother and faster rotation on ProgressDialog
<p>I have a custom animation to my ProgressDialog which is set this way:</p>

<pre><code>pd.setIndeterminateDrawable(c.getResources().getDrawable(R.anim.progress_animation));
</code></pre>

<p>The <code>progress_animation</code> is like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromDegrees="0"
    android:interpolator="@android:anim/linear_interpolator"
    android:pivotX="50%"
    android:pivotY="50%"
    android:repeatCount="infinite"
    android:toDegrees="358" &gt;

    &lt;shape
        android:innerRadiusRatio="3"
        android:shape="ring"
        android:thicknessRatio="8"
        android:useLevel="false" &gt;
        &lt;size
            android:height="48dip"
            android:width="48dip" /&gt;

        &lt;gradient
            android:centerColor="#4c737373"
            android:centerY="0.50"
            android:endColor="#E66A0F"
            android:startColor="#4c737373"
            android:type="sweep"
            android:useLevel="false" /&gt;
    &lt;/shape&gt;

&lt;/animated-rotate&gt;
</code></pre>

<p>This will give me an orange spinning wheel, but this seems to be "slower" or more laggy than the default spinning wheel in the ProgressDialog. I've tried setting the <code>android:toDegrees</code> from 360 to 358, but with no luck. I have also enabled hardware acceleration. Is there anyway I can make this animation smoother, or faster? </p>

<p>Thanks! </p>
