Example usage for android.animation ObjectAnimator setFloatValues

List of usage examples for android.animation ObjectAnimator setFloatValues

Introduction

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

Prototype

@Override
    public void setFloatValues(float... values) 

Source Link

Usage

From source file:Main.java

public static ObjectAnimator ofFloat(Object target, String propertyName, float... values) {
    ObjectAnimator anim = new ObjectAnimator();
    anim.setTarget(target);//  w w w . j a va 2  s. c  o m
    anim.setPropertyName(propertyName);
    anim.setFloatValues(values);
    cancelOnDestroyActivity(anim);
    return anim;
}