Rotating a view through RotateAnimation in Android

For rotating a view,


RotateAniamtion rAnim = new RotateAnimation(0,360, w/2, h/2);
rAnim.setInterpolator(new LinearInterpolator());
rAnim.setDuration(900L);
rAnim.setStartTime(200L);


List of Interpolators in Android are as follows

1. ACCELERATE_DECELERATE_INTERPOLATOR
2. ACCELERATE_INTERPOLATOR
3. DECELERATE_INTERPOLATOR
4. ANTICIPATE_INTERPOLATOR
5. BOUNCE_INTERPOLATOR
6. ANTICIPATE_OVERSHOOT_INTERPOLATOR
7. FADE_IN_INTERPOLATOR
8. FADE_OUT_INTERPOLATOR
9. LINEAR_INTERPOLATOR
10. OVERSHOOT_INTERPOLATOR
11. SLIDE_IN_LEFT_INTERPOLATOR
12. SLIDE_OUT_RIGHT_INTERPOLATOR

Popular posts from this blog

AlarmManager and Notification in Android

Swipe Action and ViewFlipper in Android

Open Gallery and get the selected image in appplication