rollover Y ObjectAnimator - Android android.animation

Android examples for android.animation:ObjectAnimator

Description

rollover Y ObjectAnimator

Demo Code


//package com.java2s;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.view.View;

public class Main {

    public static void rolloverY(View v) {
        ObjectAnimator yRollover = ObjectAnimator.ofFloat(v, "rotationY",
                0f, 3600f);/*w  w w. ja  va  2s.  c o  m*/
        AnimatorSet set = new AnimatorSet();
        set.play(yRollover);
        yRollover.start();
    }
}

Related Tutorials