Skip to content

AnimationListener Not Work #598

@Jerome-MJ

Description

@Jerome-MJ

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions