transitionx / in.arunkumarsampath.transitionx / android.view.ViewGroup

Extensions for android.view.ViewGroup

cancelTransitions

fun ViewGroup.cancelTransitions(): Unit

Cancels all animations running on this ViewGroup. Internally calls TransitionManager.endTransitions.

prepareAutoTransition

fun ViewGroup.prepareAutoTransition(cancel: Boolean = false, autoTransitionBuilder: AutoTransitionBuilder.() -> Unit = {}): Unit

Schedules a call to TransitionManager.beginDelayedTransition with receiver ViewGroup as the scene root. autoTransitionBuilder uses a AutoTransition instance internally and its properties can be modified by using available methods from AutoTransitionBuilder.

prepareTransition

fun ViewGroup.prepareTransition(cancel: Boolean = false, transitionsBuilder: DefaultTransitionSetBuilder.() -> Unit = {}): Unit

Schedules a call to TransitionManager.beginDelayedTransition with receiver ViewGroup as the scene root. transitionsBuilder uses a TransitionSet instance internally and its properties can be modified by using available methods from DefaultTransitionSetBuilder

fun ViewGroup.prepareTransition(cancel: Boolean = false, transition: Transition): Unit

Calls TransitionManager.beginDelayedTransition with this ViewGroup and transition as the parameter.