private ObjectAnimator rotate;
@SimpleFunction
public void Rotaion (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();
}
i want make dynamic extension this java code stop by id or component
this extension only one stop component if i use multy componet rotate and iam stop only last componet stoped