Stay organized with collections
Save and categorize content based on your preferences.
CircularPropagation
open class CircularPropagation : VisibilityPropagation
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 android.transition.Explode.
Summary
| Public methods |
| open Long |
Called by Transition to alter the Animator start delay.
|
| open Unit |
Sets the speed at which transition propagation happens, relative to the duration of the Transition.
|
| Inherited functions |
From class VisibilityPropagation
Unit |
captureValues(values: TransitionValues!)
Captures the values in the start or end scene for the properties that this transition propagation monitors. These values are then passed as the startValues or endValues structure in a later call to getStartDelay(android.view.ViewGroup,android.transition.Transition,android.transition.TransitionValues,android.transition.TransitionValues). The main concern for an implementation is what the properties are that the transition cares about and what the values are for all of those properties. The start and end values will be compared later during the getStartDelay(android.view.ViewGroup,android.transition.Transition,android.transition.TransitionValues,android.transition.TransitionValues). method to determine the start delay.
Subclasses must implement this method. The method should only be called by the transition system; it is not intended to be called from external classes.
|
Array<String!>! |
getPropagationProperties()
Returns the set of property names stored in the TransitionValues object passed into captureValues(android.transition.TransitionValues) that this transition propagation cares about for the purposes of preventing duplicate capturing of property values.
A TransitionPropagation must override this method to prevent duplicate capturing of values and must contain at least one
|
Int |
getViewVisibility(values: TransitionValues!)
Returns android.view.View#getVisibility() for the View at the time the values were captured.
|
Int |
getViewX(values: TransitionValues!)
Returns the View's center x coordinate, relative to the screen, at the time the values were captured.
|
Int |
getViewY(values: TransitionValues!)
Returns the View's center y coordinate, relative to the screen, at the time the values were captured.
|
|
|
|
Public constructors
CircularPropagation
CircularPropagation()
Public methods
getStartDelay
open fun getStartDelay(
sceneRoot: ViewGroup!,
transition: Transition!,
startValues: TransitionValues!,
endValues: TransitionValues!
): Long
Called by Transition to alter the Animator start delay. All start delays will be adjusted such that the minimum becomes zero.
| Parameters |
sceneRoot |
ViewGroup!: The root of the View hierarchy running the transition. |
transition |
Transition!: The transition that created the Animator |
startValues |
TransitionValues!: The values for a specific target in the start scene. |
endValues |
TransitionValues!: The values for the target in the end scene. |
| Return |
Long |
A start delay to use with the Animator created by transition. The delay will be offset by the minimum delay of all TransitionPropagations used in the Transition so that the smallest delay will be 0. Returned values may be negative. |
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-13 UTC."],[],[]]