ozodrukh/CircularReveal

Programmatically cancel current animation

Closed this issue · 4 comments

Is there any way to programmatically cancel a running circular reveal animation? Perhaps something like

if (animation.isRunning()) {
animation.cancel();
}

Ok, it is not implemented by API but you can do something like that

  SupportAnimator animator = ...
  if(animator.isRunning()){
     com.nineoldandroid.Animator cna = animator.get();
     cna.cancel();
  }

Sure, thanks! I'll try this for now. Could you add a method to make it easier to access later on?

it will be better and faster if you would add pull request