AutoTransition
open class AutoTransition : TransitionSet
Utility class for creating a default transition that automatically fades, moves, and resizes views during a scene change.
An AutoTransition can be described in a resource file by using the tag autoTransition
, along with the other standard attributes of Transition
.
Summary
Inherited constants |
|
From class TransitionSet
Int |
ORDERING_SEQUENTIAL
A flag used to indicate that the child transitions of this set should play in sequence; when one child transition ends, the next child transition begins. Note that a transition does not end until all instances of it (which are playing on all applicable targets of the transition) end.
|
Int |
ORDERING_TOGETHER
A flag used to indicate that the child transitions of this set should all start at the same time.
|
|
Public constructors |
Constructs an AutoTransition object, which is a TransitionSet which first fades out disappearing targets, then moves and resizes existing targets, and finally fades in appearing targets.
|
|
Inherited functions |
From class TransitionSet
TransitionSet |
addListener(@NonNull listener: Transition.TransitionListener)
|
TransitionSet |
addTarget(@NonNull target: View)
|
TransitionSet |
addTarget(@IdRes targetId: Int)
|
TransitionSet |
addTarget(@NonNull targetName: String)
|
TransitionSet |
addTarget(@NonNull targetType: Class<*>)
|
TransitionSet |
addTransition(@NonNull transition: Transition)
Adds child transition to this set. The order in which this child transition is added relative to other child transitions that are added, in addition to the ordering property, determines the order in which the transitions are started.
If this transitionSet has a duration , interpolator , propagation delay , path motion , or epicenter callback set on it, the child transition will inherit the values that are set. Transitions are assumed to have a maximum of one transitionSet parent.
|
Unit |
captureEndValues(@NonNull transitionValues: TransitionValues)
|
Unit |
captureStartValues(@NonNull transitionValues: TransitionValues)
|
Transition |
clone()
|
Transition |
excludeTarget(@NonNull target: View, exclude: Boolean)
|
Transition |
excludeTarget(@NonNull targetName: String, exclude: Boolean)
|
Transition |
excludeTarget(targetId: Int, exclude: Boolean)
|
Transition |
excludeTarget(@NonNull type: Class<*>, exclude: Boolean)
|
Int |
getOrdering()
Returns the ordering of this TransitionSet. By default, the value is ORDERING_TOGETHER .
|
Transition? |
getTransitionAt(index: Int)
Returns the child Transition at the specified position in the TransitionSet.
|
Int |
getTransitionCount()
Returns the number of child transitions in the TransitionSet.
|
TransitionSet |
removeListener(@NonNull listener: Transition.TransitionListener)
|
TransitionSet |
removeTarget(@IdRes targetId: Int)
|
TransitionSet |
removeTarget(@NonNull target: View)
|
TransitionSet |
removeTarget(@NonNull target: Class<*>)
|
TransitionSet |
removeTarget(@NonNull target: String)
|
TransitionSet |
removeTransition(@NonNull transition: Transition)
Removes the specified child transition from this set.
|
TransitionSet |
setDuration(duration: Long)
Setting a non-negative duration on a TransitionSet causes all of the child transitions (current and future) to inherit this duration.
|
Unit |
setEpicenterCallback(epicenterCallback: Transition.EpicenterCallback?)
|
TransitionSet |
setInterpolator(@Nullable interpolator: TimeInterpolator?)
|
TransitionSet |
setOrdering(ordering: Int)
Sets the play order of this set's child transitions.
|
Unit |
setPathMotion(pathMotion: PathMotion?)
|
Unit |
setPropagation(propagation: TransitionPropagation?)
|
TransitionSet |
setStartDelay(startDelay: Long)
|
|
|