Making a custom progressdialog with an animation
<p>I am trying to make my own progressdialog, sort of. I'm just using a Dialog which inflates a Layout. In this layout, I have an <code>ImageView</code>, this imageview should rotate just like the original spinner in the <code>ProgressDialog</code>. I applied this animation to it:</p>

<pre><code>RotateAnimation r = new RotateAnimation(ROTATE_FROM, ROTATE_TO, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    r.setDuration(10000);
    r.setRepeatCount(r.INFINITE);
    icon.startAnimation(r);
</code></pre>

<p>The animation last for 10000 ms obviously. The animation start slowly and ends slowly, is it possible that the rotation speed is constant at all time?  </p>
