ModifiersBuilders.FadeOutTransition


@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
public final class ModifiersBuilders.FadeOutTransition


The fading animation for content transition of an element and its children, from fully visible to the specified target alpha.

Summary

Nested types

Builder for FadeOutTransition

Public methods

@Nullable AnimationParameterBuilders.AnimationSpec

Gets the animation parameters for duration, delay, etc.

@FloatRange(from = 0.0, to = 1.0) float

Gets the target alpha of the fade out transition.

@NonNull String

Public methods

getAnimationSpec

Added in 1.0.0
public @Nullable AnimationParameterBuilders.AnimationSpec getAnimationSpec()

Gets the animation parameters for duration, delay, etc.

getTargetAlpha

Added in 1.0.0
public @FloatRange(from = 0.0, to = 1.0) float getTargetAlpha()

Gets the target alpha of the fade out transition. It should be between 0 and 1. If not set, defaults to fully invisible, i.e. 0.

toString

public @NonNull String toString()