"Tap or click to swap screens", null, null);
// Set up the animation. The animation will animate a scalar float value
// (_mainRotation) from 360 to 0 over 3 seconds and will repeat
// indefinitely.
_animator = new Animator(0);
final Animation animation =
_animator.addAnimationFromTo(_mainRotation,
AnimatedScalar.ANIMATION_PROPERTY_SCALAR, 360.0f, 0.0f,
Animation.EASINGCURVE_LINEAR, 3000L);
animation.setRepeatCount(Animation.REPEAT_COUNT_INDEFINITE);