TransitionPropagation
public
abstract
class
TransitionPropagation
extends Object
Known direct subclasses
VisibilityPropagation |
Base class for TransitionPropagation s that care about
View Visibility and the center position of the View.
|
|
Known indirect subclasses
CircularPropagation |
A propagation that varies with the distance to the epicenter of the Transition
or center of the scene if no epicenter exists.
|
SidePropagation |
A TransitionPropagation that propagates based on the distance to the side
and, orthogonally, the distance to epicenter.
|
|
Extend TransitionPropagation
to customize start delays for Animators created
in Transition.createAnimator(ViewGroup, TransitionValues, TransitionValues)
. A Transition such as Explode
defaults to using 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.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
TransitionPropagation
public TransitionPropagation ()
Public methods
getPropagationProperties
public abstract String[] getPropagationProperties ()
Returns the set of property names stored in the TransitionValues
object passed into captureValues(android.transition.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
getStartDelay
public abstract long getStartDelay (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.
Parameters |
sceneRoot |
ViewGroup : The root of the View hierarchy running the transition. |
transition |
Transition : The transition that created the Animator |
startValues |
TransitionValues : The values for a specific target in the start scene. |
endValues |
TransitionValues : The values for the target in the end scene. |
Returns |
long |
A start delay to use with the Animator created by transition . The
delay will be offset by the minimum delay of all TransitionPropagation s
used in the Transition so that the smallest delay will be 0. Returned values may be
negative. |