Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Animated gif [duplicate]

Tags:

android

I've got an animated gif which is a loading bar. The image displays but there is no animation, how would I get it to animate?

like image 221
Skizit Avatar asked Nov 04 '22 21:11

Skizit


1 Answers

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

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

like image 105
Eren Tantekin Avatar answered Nov 11 '22 10:11

Eren Tantekin