Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.Animation; import android.view.animation.LinearInterpolator; import android.view.animation.RotateAnimation; public class Main { private static final int ANIM = 400; public static void rotate180to360(View view) { RotateAnimation rotate = new RotateAnimation(180, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); rotate.setDuration(ANIM); rotate.setInterpolator(new LinearInterpolator()); rotate.setFillAfter(true); view.startAnimation(rotate); } }