1

I have a .gif file with four frames, i used Ion library for animation but it doesn't show good result. Because this library shows previous frame along with animation. How can i fix that?

Mursaleen
  • 59
  • 1
  • 5

1 Answers1

2

Here is a link to a relevant question Display Animated GIF that has already been answered. Essentially, it says that you can display .gifs with the android.graphics.Movie class. It has been available from API level 1. check out this code linked here https://code.google.com/p/apidemos/source/browse/trunk/ApiDemos/src/com/example/android/apis/graphics/BitmapDecode.java#103 and from line 103 down there is an implementation of it opening an gif resource

Community
  • 1
  • 1
Rgw3d
  • 61
  • 6