Example usage for android.animation Keyframe ofObject

List of usage examples for android.animation Keyframe ofObject

Introduction

In this page you can find the example usage for android.animation Keyframe ofObject.

Prototype

public static Keyframe ofObject(float fraction) 

Source Link

Document

Constructs a Keyframe object with the given time.

Usage

From source file:android.support.graphics.drawable.AnimatorInflaterCompat.java

private static Keyframe createNewKeyframe(Keyframe sampleKeyframe, float fraction) {
    return sampleKeyframe.getType() == float.class ? Keyframe.ofFloat(fraction)
            : (sampleKeyframe.getType() == int.class) ? Keyframe.ofInt(fraction) : Keyframe.ofObject(fraction);
}