首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > GifView Android

GifView Android

  • 资源大小:799.31 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

android中现在没有直接显示gif的view,只能通过mediaplay来显示,且还常常不能正常显示出来,为此写了这个gifview,其用法和imageview一样 in android,there is not a view to show gif image,you can only use mediaplay,but this is not a view.so i create the gifview. 因为我现在无法在downloads中上传源码,最新源码放在source中,以后Downloads中的代码不再更新 the newest source code is in source svn. 使用说明 1.在你的工程中新建一个lib目录,并把gifview.jar放到里面。 create "lib" dir in you project,and put gifview.jar in . 2.在编译路径中添加对这个jar的引用。 import gifview.jar in build path. 3.在使用时,可以直接在layout文件中定义gifview,但只能在代码中设置gif图片(setgifimage) you can define gifview in layout ,but you only can set the gif image in source code(the function setGifImage) 已知bug: 如果图档过大,会出现OOM if the gif image is too large,maybe OOM. 为了解决图档太大时的OOM,我想把gif解析时的图片先存入到文件中,在显示时直接从文件中读入,但这样的话,显示的效果不好。在最新的代码中有此功能,但并没有使用,如果有谁能进一步解决此问题,请告诉我,或者让我把您把到项目成员中。

文 件 列 表

GifViewDemo
src
res
lib
gen
bin
assets
.classpath
.project
AndroidManifest.xml
default.properties
VIP VIP
0.171805s