14

Pausing and Resuming an amination

view full story
linux-howto

http://androidforums.com – I have been writing a 2D action game using mostly Canvas, ObjectAnimator and Bitmap. I am trying to handle scenarios where the game could be paused and resume later (i.e. user initiated a pause command, or the game went back to background..etc). It is understandable that ObjectAnimator would not support pause/resume functions because the class manages the begin value, end value and duration of the animation itself. What would be the best approach to implement a "illusion" of pause/resume on an ObjectAnimator animation even with the absent of such operations? I have been thinking o (General)