Most visited

Recently visited

Added in API level 21

CircularPropagation

public class CircularPropagation
extends VisibilityPropagation

java.lang.Object
   ↳ android.transition.TransitionPropagation
     ↳ android.transition.VisibilityPropagation
       ↳ android.transition.CircularPropagation


如果没有震中,传播将随距离过渡中心或场景中心的距离而变化。 当转换开始时可以看到视图时,距离震中较远的视图将比震中附近的视图更快地转换。 当一个视图不在转换开始时或者在转换开始时不可见时,它将在离震中较近的地方以及随后离震中较远处转换。 这是与Explode使用的默认TransitionPropagation。

Summary

Public constructors

CircularPropagation()

Public methods

long getStartDelay(ViewGroup sceneRoot, Transition transition, TransitionValues startValues, TransitionValues endValues)

由Transition调用以改变Animator启动延迟。

void setPropagationSpeed(float propagationSpeed)

设置转换传播发生的速度,相对于转换的持续时间。

Inherited methods

From class android.transition.VisibilityPropagation
From class android.transition.TransitionPropagation
From class java.lang.Object

Public constructors

CircularPropagation

Added in API level 21
CircularPropagation ()

Public methods

getStartDelay

Added in API level 21
long getStartDelay (ViewGroup sceneRoot, 
                Transition transition, 
                TransitionValues startValues, 
                TransitionValues endValues)

由Transition调用以改变Animator启动延迟。 所有启动延迟将被调整,使得最小值变为零。

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.
Returns
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

Added in API level 21
void setPropagationSpeed (float propagationSpeed)

设置转换传播发生的速度,相对于转换的持续时间。 1的propagationSpeed意味着propagationSpeed中心距震中最远的中心最远的视图将具有大约转变持续时间的启动延迟的差异。 速度2意味着启动延迟差将大约为转换持续时间的一半。 值0是非法的,但是负值会颠倒传播。

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.

Hooray!