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) }
Functions
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
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
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
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
Link copied to clipboard
open override fun isTransitionRequired(@Nullable p0: TransitionValues?, @Nullable p1: TransitionValues?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun onAppear(@NonNull p0: ViewGroup, @NonNull p1: View, @Nullable p2: TransitionValues?, @Nullable p3: TransitionValues?): Animator?
Link copied to clipboard
open override fun onDisappear(@NonNull p0: ViewGroup, @NonNull p1: View, @Nullable p2: TransitionValues?, @Nullable p3: TransitionValues?): Animator?
open fun onDisappear(@NonNull p0: ViewGroup, @Nullable p1: TransitionValues?, p2: Int, @Nullable p3: TransitionValues?, p4: Int): Animator?
Link copied to clipboard
inline fun Transition.onTransitionCancel(crossinline onTransitionCancel: (Transition) -> Unit = { _ -> })
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard