Example usage for android.animation ValueAnimator setFloatValues

List of usage examples for android.animation ValueAnimator setFloatValues

Introduction

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

Prototype

public void setFloatValues(float... values) 

Source Link

Document

Sets float values that will be animated between.

Usage

From source file:Main.java

public static ValueAnimator ofFloat(float... values) {
    ValueAnimator anim = new ValueAnimator();
    anim.setFloatValues(values);
    cancelOnDestroyActivity(anim);/*from   ww  w  .  java2s .  co m*/
    return anim;
}