Example usage for android.animation Keyframe getType

List of usage examples for android.animation Keyframe getType

Introduction

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

Prototype

public Class getType() 

Source Link

Document

Gets the type of keyframe.

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);
}