sealz
sealz

Reputation: 5408

Animated Images in ImageView?

Example Images

Would implementing these into an android app as an ImageView be the same as implementing a regular image, or would problem, low performance occur since they are .GIFs?

I am aware that .PNGs are the go to image for android so is it possible to create animated .PNG images, if not what is the best practice for including animated images?

Upvotes: 0

Views: 1597

Answers (1)

Pointer Null
Pointer Null

Reputation: 40370

First, PNG's can't be animated. From bitmap formats, only GIF supports animation. Unfortunately Android doesn't support animated gifs.

Read also this: Display Animated GIF

You may use AnimationDrawable to display animated set of images. However, such storing of animation frame by frame is taking much more memory than typical animated gif.

There's no easy solution for displaying animated gif on Android at present.

Upvotes: 1

Related Questions