显示自定义列表视图android的GIF图像? [英] Display a gif image in Custom listview android?

查看:259
本文介绍了显示自定义列表视图android的GIF图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示GIF图像 http://peacechild.org /wp-content/uploads/2012/09/loading.gif
在自定义列表视图中的每个元素。
怎么做?
我知道,我们要利用电影类的,但如何使用它?
一个例子将是有益的。
谢谢

I want to display a gif image http://peacechild.org/wp-content/uploads/2012/09/loading.gif in each element of custom listview. How to do that? I know that we have to make use of the movie class but how to use it? An example would be helpfull. Thanks

推荐答案

使用 VideoView

本机的ImageView 不支持动画形象。你有两个选择,显示GIF动画文件

Natively ImageView does not support animated image. You have two options to show animated gif file

1.使用 VideoView 结果
2.使用的ImageView 和斯普利特GIF文件分成几个部分,然后将动画应用于它

1.Use VideoView
2.Use ImageView and Split the gif file into several parts and then apply animation to it

这篇关于显示自定义列表视图android的GIF图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆