FileDocCategorySizeDatePackage
TransitionValues.javaAPI DocAndroid 5.1 API2952Thu Mar 12 22:22:10 GMT 2015android.transition

TransitionValues

public class TransitionValues extends Object
Data structure which holds cached values for the transition. The view field is the target which all of the values pertain to. The values field is a map which holds information for fields according to names selected by the transitions. These names should be unique to avoid clobbering values stored by other transitions, such as the convention project:transition_name:property_name. For example, the platform might store a property "alpha" in a transition "Fader" as "android:fader:alpha".

These values are cached during the {@link Transition#captureStartValues(TransitionValues)} capture} phases of a scene change, once when the start values are captured and again when the end values are captured. These start/end values are then passed into the transitions via the for {@link Transition#createAnimator(ViewGroup, TransitionValues, TransitionValues)} method.

Fields Summary
public android.view.View
view
The View with these values
public final Map
values
The set of values tracked by transitions for this scene
final ArrayList
targetedTransitions
The Transitions that targeted this view.
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object other)


    
        
        if (other instanceof TransitionValues) {
            if (view == ((TransitionValues) other).view) {
                if (values.equals(((TransitionValues) other).values)) {
                    return true;
                }
            }
        }
        return false;
    
public inthashCode()

        return 31*view.hashCode() + values.hashCode();
    
public java.lang.StringtoString()

        String returnValue = "TransitionValues@" + Integer.toHexString(hashCode()) + ":\n";
        returnValue += "    view = " + view + "\n";
        returnValue += "    values:";
        for (String s : values.keySet()) {
            returnValue += "    " + s + ": " + values.get(s) + "\n";
        }
        return returnValue;