4

为 Android 制作动画 GIF 的最佳方式是什么?我有一组需要动画的位图。它适用于互联网上漂浮的 AnimatedGifEncoder 类,但在性能方面它非常慢。有没有其他方法可以将一组位图编码为动画 GIF?

谢谢

4

1 回答 1

-1

Android actually can decode and display animated GIFs, using android.graphics.Movie class.

This is not too much documented, but is in http://developer.android.com/reference/android/graphics/Movie.html.

Moreover, it is used in https://code.google.com/p/apidemos/source/browse/trunk/ApiDemos/src/com/example/android/apis/graphics/BitmapDecode.java#103 example with some animated flag.

thanks to Pointer Null

于 2013-10-10T13:50:15.357 回答