The StopAnimation method does not reset the animation on Android. On iOS there are no problems. The interface documentation of StopAnimation is set to the following: "Will stop and reset the currently playing animation".
As a workaround I've tried to use animationView.PlayMinAndMaxProgress(0.0f, 0.0f); but this results in further problems because when I then restart the animation, the animation instantly finishes. Even when I set animationView.MaxProgress = float.MaxValue; I see no difference.
Expected behavior
The Animation gets reseted on Android when I use the StopAnimation method.
Reproduction steps
var animationView = new AnimationView();
animationView.Animation = "animation.json";
animationView.PlayAnimation();
animationView.OnFinishedAnimation += (sender, args) =>
{
animationView.StopAnimation();
};
🐛 Bug Report
The StopAnimation method does not reset the animation on Android. On iOS there are no problems. The interface documentation of StopAnimation is set to the following: "Will stop and reset the currently playing animation".
As a workaround I've tried to use
animationView.PlayMinAndMaxProgress(0.0f, 0.0f);
but this results in further problems because when I then restart the animation, the animation instantly finishes. Even when I setanimationView.MaxProgress = float.MaxValue;
I see no difference.Expected behavior
The Animation gets reseted on Android when I use the StopAnimation method.
Reproduction steps
Configuration
Version: 4.0.6
Platform: