i have problem plaese help i make rotation i want stop animation by view how do that
private ObjectAnimator rotate;
@SimpleFunction
public void Rotaion1 (AndroidViewComponent view, int delay) {
rotate = ObjectAnimator.ofFloat(view.getView(), "rotation", 0f, 36000f);
rotate.setStartDelay(delay);
rotate.setRepeatCount(-1);
rotate.setInterpolator(new LinearInterpolator());
rotate.setDuration(200000);
rotate.start();
}
@SimpleFunction
public void Rotaion2 (AndroidViewComponent view, int delay) {
rotate = ObjectAnimator.ofFloat(view.getView(), "rotation", 0f, 36000f);
rotate.setStartDelay(delay);
rotate.setRepeatCount(-1);
rotate.setInterpolator(new LinearInterpolator());
rotate.setDuration(200000);
rotate.start();
}
@SimpleFunction
public void Stop (AndroidViewComponent view){
rotate.cancel();
}
only last animation stop by this code iwant stop rotatoin by view animation