Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.RotateAnimation; public class Main { public static void btnRotate(View view) { RotateAnimation ra = new RotateAnimation(0, 360, 100, 100); ra.setDuration(1000); view.startAnimation(ra); } }