Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with Animated gif on Android

I need some advice about animation. I have an animated GIF, but how to put in Android app to be animation. When I put it doesn't move at all. I read something about animation in Android and I need to have pictures for animation. Is there any solution for this ?

like image 345
Momcilo Avatar asked Sep 11 '10 16:09

Momcilo


2 Answers

Android does not support animated GIFs much. You can use an AnimationDrawable, perhaps defined from frames using a drawable XML file.

like image 147
CommonsWare Avatar answered Sep 20 '22 14:09

CommonsWare


you can do it by using GIF image in your app as Splash screen. Android does not support animated GIFs. so extract gif to png pictures with gif2png and it works with XML. And Other Option Adding gif image in an ImageView in android Adding gif image in an ImageView in android

like image 34
Nikhil Borad Avatar answered Sep 18 '22 14:09

Nikhil Borad