yiwanganjing / gifview Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gifview
Automatically exported from code.google.com/p/gifview
I was seeking for some 3rd party lib for displaying GIF animation, and this one is good reference to me.
Except displaying GIF animation easily, however this lib is not powerful enough for some advance applications. Of course I can improve it by myself since I have downloaded your source code through the RAR package, but I think I would like to contribute my improvement and enhancement back to this project for more developer could be benefited also.
If you agree my idea, please upload all your source code in this Google Code SVN repository instead of placing RAR package only, and grant me the permission that I can modify and commit any change in source code from me.
Original issue reported on code.google.com by [email protected]
on 2 Jan 2011 at 7:29
GIF图片一直是循环播放,请问有没有办法让它只播放一次。��
�什么解决方法吗,我是初学者,不想让它循环播放。
Original issue reported on code.google.com by [email protected]
on 20 Dec 2012 at 5:23
在作者的decoder的基础上
写了个GiFDrawable,这样就能用在其他view里了
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 9:24
Attachments:
刚开始设置给一个gifview对象设置了一个gif图片后,如何将它�
��换成其他的gif图像。我如果直接调用setGifImage方法或产生“�
��程已经开始”的错误。
然后我对gifview对象先调用destroy方法,再调用setGifImage方法设�
��gif图片时候依然是上面的这个错误。
请问如何更新图片。或者如何释放掉里面的线程。
Original issue reported on code.google.com by [email protected]
on 21 Feb 2012 at 4:59
调用destroy方法
Original issue reported on code.google.com by [email protected]
on 7 Nov 2011 at 8:40
把gif图片分解为bitmap放到SDCARD上,然后再读取出来,发现图��
�是NULL的。所以不会显示动画。
currentImage = BitmapFactory.decodeFile(frame.imageName);这个是空的NULL
这是什么情况呢?
如果不保存为图片,那是可以正常播放的,感觉是不是在将bi
tmap存储为文件的时候出错了,但是又看不出个原因。会不会�
��gif图片本身有关?
另外,我觉得找个类也能imageview那样显示静态图片,不一定��
�gif格式的。
能够传入多张图片,实现帧动画,以此达到类似gif图片的效��
�。这样我可以在一个listview中显示不同的图片或者动画而只��
�要加入同一种布局
Original issue reported on code.google.com by [email protected]
on 13 Jan 2012 at 9:24
为什么不直接在drawable上做gif呢?这样复用不会有线程冲突。
如果可以的话我也想加入这个开源项目。
Original issue reported on code.google.com by [email protected]
on 20 Nov 2012 at 7:36
What steps will reproduce the problem?
1. Please use out attached file (it comes from
http://www.buienradar.nl/images.aspx?jaar=-3&bliksem=0&voor=&soort=loop1uur1x1 )
2. Play it within the app
What is the expected output? What do you see instead?
Expected: a nice radarview
Instead it doesn't clean up the previous frames so a long trail of clouds shows
on screen.
What version of the product are you using? On what operating system?
Android 2.2.3 HTC Desire HD
Original issue reported on code.google.com by [email protected]
on 21 Jul 2011 at 10:30
我用的是2010年5月份的那个jar文件显示gif图片的,从一个activi
ty1跳到另外一个activity2,再从activity2跳到activity1,这样反复22
次就出现了上面那个问题,我想问问能不能再离开这个activity
的时候释放bitmap的内存,那样的话应该就不会产生这个问题��
�吧...或者说有没有什么好的解决方法?
Original issue reported on code.google.com by [email protected]
on 2 Aug 2012 at 7:45
如题所述,在Resume时都会出现这个问题。
Original issue reported on code.google.com by [email protected]
on 31 Jul 2013 at 8:35
我用listview显示一些我自定义的布局的时候,在自定义布局中
使用了gifview,并且自定义布局中的其他控件的数值是绑定sqli
te的,此时,
执行
holder.IM1.setGifImage(R.drawable.gif1);
就会报错,报数据库没有关闭的错误
但是如果注释掉这句代码,就没有任何错误
不知道是什么问题,怎么会冲突呢?
Original issue reported on code.google.com by [email protected]
on 7 Dec 2011 at 8:50
GifDecoder类有一部分代码存在问题,造成空引用的异常。
int save = 0;
if (transparency) {
save = act[transIndex];
act[transIndex] = 0; // set transparent color if specified
}
if (act == null) {
status = STATUS_FORMAT_ERROR; // no color table defined
}
act 是不是应该先判断是否为null?
if (transparency) {
if(acr != null){
save = act[transIndex];
act[transIndex] = 0; // set transparent color if specified
}
}
Original issue reported on code.google.com by [email protected]
on 16 Nov 2011 at 6:44
能否改为解码一帧,并显示,然后释放内存,再解码下一帧��
�再显示,并释放内存?
Original issue reported on code.google.com by [email protected]
on 14 Sep 2011 at 11:00
从你的方法看到了三种加载gif的方法,分别是byte和stream、id
但是怎加载sd卡里的呢? 我是新手 感谢回复下
Original issue reported on code.google.com by [email protected]
on 16 Mar 2012 at 7:50
OOM问题目前已经解决,但因为原来的账号被google封了,无法��
�新,因此新建了一个来更新,地址为http://code.google.com/p/gifvie
w2
Original issue reported on code.google.com by [email protected]
on 19 Apr 2013 at 1:00
当ui线程在执行onMeasure函数时,图片解析线程并没有计算完成
,以至于onMeasure中计算图片的大小存在问题,最终不能完整��
�示图片。
Original issue reported on code.google.com by [email protected]
on 16 Nov 2011 at 9:28
非常感谢你的项目,使我的程序可以播放gif动画
想请教一下要想写这种解析之类的东西,那就要对相应的文��
�格式是如何组织的非常了解才可了?这种程序和应用型的程�
��看起来真是不是一个感觉。虽然自己所在的公司也是做文件
解析的但是自己做的大多是上层,对真正的解析都不了解,��
�了你的程序,才明白一点原来文件是这样解析的。
Original issue reported on code.google.com by [email protected]
on 23 Nov 2011 at 6:08
如何解决从网络加载的gif图片加载问题?
Original issue reported on code.google.com by [email protected]
on 31 Oct 2013 at 5:38
What steps will reproduce the problem?
1. play the demo "循环"
2. inser the USB debug line into the phone(my is Nexus 4)
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
GifView1.2.zip
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Feb 2014 at 3:23
貌似只支持gif128仿色
当时负责出图的人给了一张gif,可以在浏览器播放,但是不��
�在android上播放,网上下载的图可以播放
后来我发了几张网上的图给他,他把颜色按照那些图设置成12
8仿色,现在能正常使用。
我把可以和不可以的图片都上传了,希望对你的项目有帮助��
�感谢你的项目!
Original issue reported on code.google.com by [email protected]
on 16 Dec 2012 at 5:51
Attachments:
具体的错误贴在这里:
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.test/com.test.TestAction}: android.view.InflateException:
Binary XML file line #6: Error inflating class com.ant.liao.GifView
Original issue reported on code.google.com by [email protected]
on 27 Aug 2012 at 3:53
1.如果多次使用GifView会出现oom,
2.destory里线程没有被销毁,所以导致性能下降。
我没有修改代码的权力,请楼主可以参考一下。
第一问题,需要解决的问题是bigmap,必要是主动回收。在GifDe
coder.free()方法中,释放前回收bitmap:
GifFrame fg = gifFrame;
while(fg != null){
if (fg.image != null) { //回收
fg.image.recycle();
}
fg.image = null;
.......
}
第二个问题,是在GifView中添加destroy方法,在里面主动释放线
程,并调用gifDecoder.free();
Original issue reported on code.google.com by [email protected]
on 14 Mar 2011 at 7:56
你好 有个小问题要请教
我在导入jar包后 项目报红叹号 然后我fix和clean都无效
右键查看Android library 一切正常 ,在referened library
里面gifview下没有任何文件 求教了 谢谢
Original issue reported on code.google.com by [email protected]
on 18 Sep 2013 at 1:08
svn上最新的代码,播放速度太快了
Original issue reported on code.google.com by [email protected]
on 20 Jan 2013 at 1:03
我看到源码里设置缓存图片的方法被注释了,这是为什么呢?�
��推荐使用么?使用这个是否能解决OOM的问题?
Original issue reported on code.google.com by [email protected]
on 1 Dec 2012 at 3:19
gifview只能显示动态图片,不能显示静态图片么?一般情况下�
��一个应用里面既有静态也有动态的图片,请问这个问题有什
么好的解决方法么?谢谢
Original issue reported on code.google.com by [email protected]
on 30 Dec 2010 at 9:30
如果gif图有半透明背景,会解析为黑色背景。
可以在setPixels方法中修改为
if (!transparency) {
c = lastBgColor;
}else{
c=0x00000000;//设置背景色为透明
}
Original issue reported on code.google.com by [email protected]
on 2 Aug 2013 at 10:10
Hi,
I added some features to your code and would like to share them back with you
in case you want to incorporate any of them:
* added GifDecoder.playInReverse() method to reverse frames after reading them
so that animation can be reverse.
* added corresponding GifView.playInReverse() method
* added GifView.setFullScreen() so that view will take up entire screen and
then can be positioned in it
* added GifView.setNumberLoops() so that the view will stop drawing after a set
number of loops of animation, optionally notifying caller when done.
* added another GifView.setShowDimension() that takes a double scale argument
so that the animation can be easily scaled while preserving the aspect ration.
* added setPositionArea() to allow specifying where on full screen the
animation will be drawn. (probably better handled through LayoutParams - this
was quick and dirty to get desired behavior)
* added setCoordinates to specify where the animation will be drawn.
* added setSpeed() to control how fast animation plays
* added setDrawingListener so caller can be notified of drawing start/finish
events.
** added GifDrawingListener interface so that GifView user can be notified of
drawing start and drawing finished events.
I hope you find some of this useful! I hacked it together pretty quick, and
haven't really cleaned it up after I got all the desired functionality.
Original issue reported on code.google.com by [email protected]
on 22 Aug 2011 at 6:17
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.