Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.view.View; import android.view.animation.AccelerateInterpolator; public class Main { public static void animation3(View view) { ObjectAnimator animator = new ObjectAnimator().ofFloat(view, "rotationY", 0.0f, 360f); animator.setDuration(4000); animator.setRepeatCount(2); animator.setInterpolator(new AccelerateInterpolator()); animator.start(); } }