Example usage for android.animation ValueAnimator setIntValues

List of usage examples for android.animation ValueAnimator setIntValues

Introduction

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

Prototype

public void setIntValues(int... values) 

Source Link

Document

Sets int values that will be animated between.

Usage

From source file:com.yoloo.android.util.AnimUtils.java

public static ValueAnimator ofArgb(int... values) {
    if (VersionUtil.hasL()) {
        return ValueAnimator.ofArgb(values);
    } else {/*from  w ww. ja v  a 2  s .  c o m*/
        ValueAnimator anim = new ValueAnimator();
        anim.setIntValues(values);
        anim.setEvaluator(AnimUtils.getArgbEvaluator());
        return anim;
    }
}