Example usage for android.animation Keyframe getValue

List of usage examples for android.animation Keyframe getValue

Introduction

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

Prototype

public abstract Object getValue();

Source Link

Document

Gets the value for this Keyframe.

Usage

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

private static void dumpKeyframes(Object[] keyframes, String header) {
    if (keyframes == null || keyframes.length == 0) {
        return;/*from  www  .j a va2s. c om*/
    }
    Log.d(TAG, header);
    int count = keyframes.length;
    for (int i = 0; i < count; ++i) {
        Keyframe keyframe = (Keyframe) keyframes[i];
        Log.d(TAG,
                "Keyframe " + i + ": fraction " + (keyframe.getFraction() < 0 ? "null" : keyframe.getFraction())
                        + ", " + ", value : " + ((keyframe.hasValue()) ? keyframe.getValue() : "null"));
    }
}