Added in API level 11
TransitionListener
Stay organized with collections
Save and categorize content based on your preferences.
interface TransitionListener
This interface is used for listening to starting and ending events for transitions.
Summary
| Public methods | |
|---|---|
| abstract Unit |
endTransition(transition: LayoutTransition!, container: ViewGroup!, view: View!, transitionType: Int)This event is sent to listeners when any type of transition animation ends. |
| abstract Unit |
startTransition(transition: LayoutTransition!, container: ViewGroup!, view: View!, transitionType: Int)This event is sent to listeners when any type of transition animation begins. |
Public methods
endTransition
Added in API level 11
abstract fun endTransition(
transition: LayoutTransition!,
container: ViewGroup!,
view: View!,
transitionType: Int
): Unit
This event is sent to listeners when any type of transition animation ends.
| Parameters | |
|---|---|
transition |
LayoutTransition!: The LayoutTransition sending out the event. |
container |
ViewGroup!: The ViewGroup on which the transition is playing. |
view |
View!: The View object being affected by the transition animation. |
transitionType |
Int: The type of transition that is ending, android.animation.LayoutTransition#APPEARING, android.animation.LayoutTransition#DISAPPEARING, android.animation.LayoutTransition#CHANGE_APPEARING, or android.animation.LayoutTransition#CHANGE_DISAPPEARING. |
startTransition
Added in API level 11
abstract fun startTransition(
transition: LayoutTransition!,
container: ViewGroup!,
view: View!,
transitionType: Int
): Unit
This event is sent to listeners when any type of transition animation begins.
| Parameters | |
|---|---|
transition |
LayoutTransition!: The LayoutTransition sending out the event. |
container |
ViewGroup!: The ViewGroup on which the transition is playing. |
view |
View!: The View object being affected by the transition animation. |
transitionType |
Int: The type of transition that is beginning, android.animation.LayoutTransition#APPEARING, android.animation.LayoutTransition#DISAPPEARING, android.animation.LayoutTransition#CHANGE_APPEARING, or android.animation.LayoutTransition#CHANGE_DISAPPEARING. |