The Android Developer Challenge is back! Submit your idea before December 2.

CircularPropagation

open class CircularPropagation : VisibilityPropagation
kotlin.Any
   ↳ androidx.transition.TransitionPropagation
   ↳ androidx.transition.VisibilityPropagation
   ↳ androidx.transition.CircularPropagation

A propagation that varies with the distance to the epicenter of the Transition or center of the scene if no epicenter exists. When a View is visible in the start of the transition, Views farther from the epicenter will transition sooner than Views closer to the epicenter. When a View is not in the start of the transition or is not visible at the start of the transition, it will transition sooner when closer to the epicenter and later when farther from the epicenter. This is the default TransitionPropagation used with Explode.

Summary

Public constructors

A propagation that varies with the distance to the epicenter of the Transition or center of the scene if no epicenter exists.

Public methods

open Long
getStartDelay(sceneRoot: ViewGroup!, transition: Transition!, startValues: TransitionValues!, endValues: TransitionValues!)

open Unit
setPropagationSpeed(propagationSpeed: Float)

Sets the speed at which transition propagation happens, relative to the duration of the Transition.

Inherited functions

Public constructors

<init>

CircularPropagation()

A propagation that varies with the distance to the epicenter of the Transition or center of the scene if no epicenter exists. When a View is visible in the start of the transition, Views farther from the epicenter will transition sooner than Views closer to the epicenter. When a View is not in the start of the transition or is not visible at the start of the transition, it will transition sooner when closer to the epicenter and later when farther from the epicenter. This is the default TransitionPropagation used with Explode.

Public methods

getStartDelay

open fun getStartDelay(sceneRoot: ViewGroup!, transition: Transition!, startValues: TransitionValues!, endValues: TransitionValues!): Long

setPropagationSpeed

open fun setPropagationSpeed(propagationSpeed: Float): Unit

Sets the speed at which transition propagation happens, relative to the duration of the Transition. A propagationSpeed of 1 means that a View centered farthest from the epicenter and View centered at the epicenter will have a difference in start delay of approximately the duration of the Transition. A speed of 2 means the start delay difference will be approximately half of the duration of the transition. A value of 0 is illegal, but negative values will invert the propagation.

Parameters
propagationSpeed Float: The speed at which propagation occurs, relative to the duration of the transition. A speed of 4 means it works 4 times as fast as the duration of the transition. May not be 0.