Example usage for android.animation ValueAnimator ofArgb

List of usage examples for android.animation ValueAnimator ofArgb

Introduction

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

Prototype

public static ValueAnimator ofArgb(int... values) 

Source Link

Document

Constructs and returns a ValueAnimator that animates between color values.

Usage

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

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