Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.view.View; public class Main { public static void rotationAngle(View view, float angleValue, long duration) { ObjectAnimator animator = ObjectAnimator.ofFloat(view, "rotation", 0f, angleValue); animator.setDuration(duration); animator.start(); } }