Programmatically cancel current animation
Closed this issue · 4 comments
aashreys commented
Is there any way to programmatically cancel a running circular reveal animation? Perhaps something like
if (animation.isRunning()) {
animation.cancel();
}
ozodrukh commented
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();
}
aashreys commented
Sure, thanks! I'll try this for now. Could you add a method to make it easier to access later on?
ozodrukh commented
it will be better and faster if you would add pull request
ozodrukh commented
checkout last version