sandalone
sandalone

Reputation: 41759

Frame-by-frame animation or video animation?

I need to use animations in the app. Is it better to use frame-to-frame ImageView animations or to use video animations? Video animations are SWF (which I can probably convert to mp4).

The animations last up to 4s what would be around 80 images in one frame-to-frame animation. This is the layout of the app.

A different animation will appear in the red area based on which button on the right side is pressed.

Now, which approach is best to use?

Please advise!

Upvotes: 1

Views: 2360

Answers (1)

Lawrence D'Oliveiro
Lawrence D'Oliveiro

Reputation: 2794

For an ImageView, I assume you will be doing the animation by repeatedly calling the invalidate method. This will not give you a high frame rate. To do real-time animation, you need a SurfaceView or subclass thereof, perhaps a VideoView.

Upvotes: 2

Related Questions