android-gif-drawable icon indicating copy to clipboard operation
android-gif-drawable copied to clipboard

AnimationListener Not Work

Open Jerome-MJ opened this issue 6 years ago • 7 comments

I have an animation, about 270ms, but I did not execute onAnimationCompleted after execution.

GifDrawable gifDrawable = new GifDrawable(bitmap.getX());
gifDrawable.setLoopCount(1);
if (gifDrawable.getDuration() > 100) {
       gifDrawable.addAnimationListener(new AnimationListener() {
                @Override
                public void onAnimationCompleted(int loopNumber) {
                      Log.e("liumj","走了onAnimationCompleted");
                       }
       );
}
gifDrawable.start();

Jerome-MJ avatar Oct 12 '18 04:10 Jerome-MJ

Could you attach affected GIF file here or send it via e-mail?

koral-- avatar Oct 12 '18 09:10 koral--

https://img.douyucdn.cn/data/yuba/default/2018/10/12/20181012182540456284717823.gif?i=265ae1dd4a52b5e8bb5ec27d356ee25612

Jerome-MJ avatar Oct 12 '18 10:10 Jerome-MJ

Thanks, I'll check that.

koral-- avatar Oct 17 '18 01:10 koral--

I was able to reproduce this issue. I'll fix it ASAP.

koral-- avatar Oct 21 '18 01:10 koral--

@koral-- Is this fixed? Can I work on this?

MonikaJethani avatar May 14 '19 13:05 MonikaJethani

Sorry for the delay, it is not fixed yet.

koral-- avatar May 15 '19 00:05 koral--

can u assign me to fix the issue

vish9431 avatar Oct 03 '23 03:10 vish9431