Android examples for android.animation:ObjectAnimator
rollover X ObjectAnimator
//package com.java2s; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.view.View; public class Main { public static void rolloverX(View v) { ObjectAnimator xRollover = ObjectAnimator.ofFloat(v, "rotationX", 0f, 3600f);/* www . j a v a2 s. c o m*/ // ObjectAnimator a = ObjectAnimator.ofFloat(v, "rotationY", 0f, 3600f); AnimatorSet set = new AnimatorSet(); set.play(xRollover); xRollover.start(); } }