TransitionPropagationpublic abstract class TransitionPropagation extends Object Extend TransitionPropagation to customize start delays for Animators created
in {@link android.transition.Transition#createAnimator(ViewGroup,
TransitionValues, TransitionValues)}. A Transition such as {@link android.transition.Explode}
defaults to using {@link android.transition.CircularPropagation} and Views closer to the
epicenter will move out of the scene later and into the scene sooner than Views farther
from the epicenter, giving the appearance of inertia. With no TransitionPropagation, all
Views will react simultaneously to the start of the transition. |
Methods Summary |
---|
public abstract void | captureValues(TransitionValues transitionValues)Captures the values in the start or end scene for the properties that this
transition propagation monitors. These values are then passed as the startValues
or endValues structure in a later call to
{@link #getStartDelay(ViewGroup, Transition, TransitionValues, TransitionValues)}.
The main concern for an implementation is what the
properties are that the transition cares about and what the values are
for all of those properties. The start and end values will be compared
later during the
{@link #getStartDelay(ViewGroup, Transition, TransitionValues, TransitionValues)}.
method to determine the start delay.
Subclasses must implement this method. The method should only be called by the
transition system; it is not intended to be called from external classes.
| public abstract java.lang.String[] | getPropagationProperties()Returns the set of property names stored in the {@link TransitionValues}
object passed into {@link #captureValues(TransitionValues)} that
this transition propagation cares about for the purposes of preventing
duplicate capturing of property values.
A TransitionPropagation must override this method to prevent
duplicate capturing of values and must contain at least one
| public abstract long | getStartDelay(android.view.ViewGroup sceneRoot, Transition transition, TransitionValues startValues, TransitionValues endValues)Called by Transition to alter the Animator start delay. All start delays will be adjusted
such that the minimum becomes zero.
|
|