Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.view.View; public class Main { public static void rotateWithDuration(View view, int milliseconds, int radiusFrom, int radiusTo) { ObjectAnimator animation = ObjectAnimator.ofFloat(view, "rotation", radiusFrom, radiusTo); animation.setDuration(milliseconds); animation.start(); } }