Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; public class Main { private static float r = 0; private static long duration = 1500; public static void rotate(Object v, float end) { r += end; ObjectAnimator.ofFloat(v, "rotation", r).setDuration(duration).start(); } }