Custom scale animation
<p>I have an 800x480 image, and I want to have a scale animation so that the image scales to 960x576. I know that Android has a <code>ScaleAnimation</code> class for this, but I also want the user to be able to pause the animation while it's scaling and resume from where they paused.</p>

<p>How can I do this?</p>

<p>I did write some custom refresh loop but it's not super smooth like the <code>ScaleAnimation</code> class. The custom refresh loop just calculates the change in width and height that is desired per 25 ms and then sets the new width to the <code>Rect</code>. Then the loop calls invalidate.</p>

<pre><code>//Reset the image size
x = (x + dx);
y = (y + dy);
imageWidth =  (imageWidth + dWidth);
imageHeight =  (imageHeight + dHeight);
</code></pre>

<p>I then draw on the canvas.</p>

<pre><code>outputRect.set((int)(-x), (int)(-y), (int)imageWidth, (int)imageHeight);
canvas.drawBitmap(bitmap, srcRect, outputRect, paint);
</code></pre>

<p>How can I do this just as smoothly as with the Android OS or more efficiently?</p>
