我想将播放 gif 格式添加到我的 android 应用程序中。可以做到这一点,我该怎么做?
问问题
22160 次
4 回答
2
您应该在您的应用程序中看到使用 .gif 文件的 API 演示示例,我将链接 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/BitmapDecode.html
于 2012-03-20T11:37:51.953 回答
1
自 Android Froyo (2.2) 起支持动画 GIF。
早期版本不支持开箱即用的动画 GIFS。您可以查看Android 问题 3422了解更多详细信息。
于 2010-07-02T07:35:18.850 回答
0
您可以从 GIF 中提取帧,然后使用逐帧动画在 android 中为这些帧设置动画。
有关逐帧动画的更多信息,您可以查看http://www.app-solut.com/blog/2011/05/playing-animations-in-android/提供的教程
于 2011-05-27T10:54:19.860 回答