开发者

Android: Animated gif [duplicate]

This question already has answers here: Display Animated GIF (29 answers) Closed 8 years ago.

I've got an animated gif which is a loading bar. The image displays but there is n开发者_Go百科o animation, how would I get it to animate?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜