title: Rotating a view and handling redraws
body: <p>I am using a <code>RotationAnimation</code> to rotate a custom view object (derived directly from <code>View</code>). The view object's <code>onDraw()</code> is called repeatedly during the animation, and then <code>onAnimationEnd</code> callback is called. In the callback I am updating the view's backing data object to record its new rotation.</p>
  
  <p>The problem I am seeing is that the view object continues to have its <code>onDraw()</code> called <em>after</em> the <code>onAnimationEnd</code> callback has been called and has returned. This is a problem because, in the callback, I update values that cause the view to render its contents with a rotation. Since the animation is also still transforming the view, the end-result is that it briefly over-rotates before snapping back to the correct position as the rotation transform is removed.</p>
  
  <p>So, if the animation causes the animated view's <code>onDraw()</code> to be called after <code>onAnimationEnd</code> is called, how can I determine when the animation has <em>really</em> finished so that I can update the backing object model at the appropriate time?</p>
  
  <p>I'd be grateful for any help on this.</p>