Animating and rotating an image in a Surface View

Posted by jax on Stack Overflow See other posts from Stack Overflow or by jax
Published on 2010-03-13T17:38:43Z Indexed on 2010/03/13 17:45 UTC
Read the original article Hit count: 241

Filed under:

I would like to animate movement on a SurfaceView . Ideally I would like to also be notified once the animation had finished.

For example: I might have a car facing North. If I wanted to animate it so that it faces South for a duration of 500ms, how could I do that?

I am using a SurfaceView so all animation must be handled manually, I don't think I can use XML or the android Animator classes.

Also, I would like to know the best way to animate something continuously inside a SurfaceView (ie. a walk cycle)

© Stack Overflow or respective owner

Related posts about android