Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.view.View; public class Main { public static void rotate(View view, float... a) { ObjectAnimator.ofFloat(view, "rotation", a).setDuration(3000).start(); } }