Example usage for android.animation Keyframe ofInt

List of usage examples for android.animation Keyframe ofInt

Introduction

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

Prototype

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