StaggerTransition

Usage

// This is the transition for the stagger effect. val stagger = StaggerTransition()

viewModel.adapterList.observe(this) { list -> // Delay the stagger effect until the list is updated. TransitionManager.beginDelayedTransition(recyclerView, stagger) adapter.submitList(list) }

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun Transition.addEndListener(onEnd: (transition: Transition) -> Unit)
Link copied to clipboard
inline fun Transition.addListener(crossinline onTransitionEnd: (Transition) -> Unit = {}, crossinline onTransitionResume: (Transition) -> Unit = {}, crossinline onTransitionPause: (Transition) -> Unit = {}, crossinline onTransitionCancel: (Transition) -> Unit = {}, crossinline onTransitionStart: (Transition) -> Unit = {})
Link copied to clipboard
Link copied to clipboard
open override fun captureEndValues(@NonNull p0: TransitionValues)
Link copied to clipboard
Link copied to clipboard
open override fun clone(): Transition
Link copied to clipboard
open override fun createAnimator(sceneRoot: ViewGroup, startValues: TransitionValues?, endValues: TransitionValues?): Animator?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDuration(): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMode(): Int
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getStartDelay(): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun isSeekingSupported(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Transition.onTransitionCancel(crossinline onTransitionCancel: (Transition) -> Unit = { _ -> })
Link copied to clipboard
inline fun Transition.onTransitionEnd(crossinline onTransitionEnd: (Transition) -> Unit = { _ -> })
Link copied to clipboard
inline fun Transition.onTransitionPause(crossinline onTransitionPause: (Transition) -> Unit = { _ -> })
Link copied to clipboard
inline fun Transition.onTransitionResume(crossinline onTransitionResume: (Transition) -> Unit = { _ -> })
Link copied to clipboard
inline fun Transition.onTransitionStart(crossinline onTransitionStart: (Transition) -> Unit = { _ -> })
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setMatchOrder(@Nullable vararg p0: Int)
Link copied to clipboard
open fun setMode(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String