Example usage for android.animation Keyframe hasValue

List of usage examples for android.animation Keyframe hasValue

Introduction

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

Prototype

public boolean hasValue() 

Source Link

Document

Indicates whether this keyframe has a valid value.

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;/*  ww w. j  a va 2  s .  com*/
    }
    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"));
    }
}