Android: animated gif

I have an animated gif that is a loading bar. The image is displayed, but there is no animation, how could I animate it?

+5
source share
1 answer

ImageView cannot display animated gifs directly. You have to decompose the animated gif into frames (separate gif files) and animate them using AnimationDrawable.

http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html

+2
source

All Articles