I created an animation for ImageView based on RotatedTranstion using the following code:
ImageView icon = ImageCache.getImage("refresh.png"); RotateTransition rotateTransition = new RotateTransition(Duration.millis(2000), icon); rotateTransition.setByAngle(360.0); rotateTransition.setCycleCount(Timeline.INDEFINITE); rotateTransition.play();
The result is the following animation:
Rotation in action
As you may have noticed in the animated gif, the animation is not continuous, that is, there is a slight delay (pause) between the animation cycles.
I tried to look at the API, but I canβt understand what causes this delay and how I can get rid of it.
source share