Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.RotateAnimation; public class Main { public static void counterClockwiseRotation90ByCenter(View v) { float w = v.getWidth(); float h = v.getHeight(); RotateAnimation anim = new RotateAnimation(0, 90, w / 2, h / 2); anim.setDuration(10 * 1); anim.setFillAfter(true); v.startAnimation(anim); } }