Example usage for android.animation ObjectAnimator setIntValues

List of usage examples for android.animation ObjectAnimator setIntValues

Introduction

In this page you can find the example usage for android.animation ObjectAnimator setIntValues.

Prototype

@Override
    public void setIntValues(int... values) 

Source Link

Usage

From source file:Main.java

public static ObjectAnimator ofInt(Object target, String propertyName, int... values) {
    ObjectAnimator anim = new ObjectAnimator();
    anim.setTarget(target);/*from w  ww .j a  v a  2  s . c om*/
    anim.setPropertyName(propertyName);
    anim.setIntValues(values);
    cancelOnDestroyActivity(anim);
    return anim;
}