Example usage for android.animation Keyframe ofFloat

List of usage examples for android.animation Keyframe ofFloat

Introduction

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

Prototype

public static Keyframe ofFloat(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);
}