Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.view.View; public class Main { public static void startRotateAnimation(View v, int duration) { ObjectAnimator oa = ObjectAnimator.ofFloat(v, "rotation", 0f, 360f); oa.setDuration(duration); oa.setInterpolator(null); oa.setRepeatCount(ValueAnimator.INFINITE); oa.start(); } }