belongs to Maven artifact com.android.support:transition:28.0.0-alpha1
TransitionListenerAdapter
public
class
TransitionListenerAdapter
extends Object
implements
Transition.TransitionListener
java.lang.Object | |
↳ | android.support.transition.TransitionListenerAdapter |
This adapter class provides empty implementations of the methods from Transition.TransitionListener
.
Any custom listener that cares only about a subset of the methods of this listener can
simply subclass this adapter class instead of implementing the interface directly.
Summary
Public constructors | |
---|---|
TransitionListenerAdapter()
|
Public methods | |
---|---|
void
|
onTransitionCancel(Transition transition)
Notification about the cancellation of the transition. |
void
|
onTransitionEnd(Transition transition)
Notification about the end of the transition. |
void
|
onTransitionPause(Transition transition)
Notification when a transition is paused. |
void
|
onTransitionResume(Transition transition)
Notification when a transition is resumed. |
void
|
onTransitionStart(Transition transition)
Notification about the start of the transition. |
Inherited methods | |
---|---|
From
class
java.lang.Object
| |
From
interface
android.support.transition.Transition.TransitionListener
|
Public constructors
Public methods
onTransitionCancel
void onTransitionCancel (Transition transition)
Notification about the cancellation of the transition.
Note that cancel may be called by a parent TransitionSet
on
a child transition which has not yet started. This allows the child
transition to restore state on target objects which was set at
createAnimator()
time.
Parameters | |
---|---|
transition |
Transition : The transition which was canceled.
|
onTransitionEnd
void onTransitionEnd (Transition transition)
Notification about the end of the transition. Canceled transitions
will always notify listeners of both the cancellation and end
events. That is, onTransitionEnd(Transition)
is always called,
regardless of whether the transition was canceled or played
through to completion.
Parameters | |
---|---|
transition |
Transition : The transition which reached its end.
|
onTransitionPause
void onTransitionPause (Transition transition)
Notification when a transition is paused.
Note that createAnimator() may be called by a parent TransitionSet
on
a child transition which has not yet started. This allows the child
transition to restore state on target objects which was set at
createAnimator()
time.
Parameters | |
---|---|
transition |
Transition : The transition which was paused.
|
onTransitionResume
void onTransitionResume (Transition transition)
Notification when a transition is resumed.
Note that resume() may be called by a parent TransitionSet
on
a child transition which has not yet started. This allows the child
transition to restore state which may have changed in an earlier call
to onTransitionPause(Transition)
.
Parameters | |
---|---|
transition |
Transition : The transition which was resumed.
|
onTransitionStart
void onTransitionStart (Transition transition)
Notification about the start of the transition.
Parameters | |
---|---|
transition |
Transition : The started transition.
|
Interfaces
Classes
- ArcMotion
- AutoTransition
- ChangeBounds
- ChangeClipBounds
- ChangeImageTransform
- ChangeScroll
- ChangeTransform
- CircularPropagation
- Explode
- Fade
- PathMotion
- PatternPathMotion
- R
- R.attr
- R.bool
- R.color
- R.dimen
- R.drawable
- R.id
- R.integer
- R.layout
- R.string
- R.style
- R.styleable
- Scene
- SidePropagation
- Slide
- Transition
- Transition.EpicenterCallback
- TransitionInflater
- TransitionListenerAdapter
- TransitionManager
- TransitionPropagation
- TransitionSet
- TransitionValues
- Visibility
- VisibilityPropagation