ModifiersBuilders.DefaultContentTransitions


@ProtoLayoutExperimental
public final class ModifiersBuilders.DefaultContentTransitions


Prebuilt default objects for animated visibility transition animations.

Summary

Public methods

static @NonNull ModifiersBuilders.EnterTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeIn()

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible.

static @NonNull ModifiersBuilders.EnterTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeInSlideIn(int slideDirection)

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible and slides it in into its position from the parent edge in the given direction.

static @NonNull ModifiersBuilders.ExitTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeOut()

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible.

static @NonNull ModifiersBuilders.ExitTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeOutSlideOut(int slideDirection)

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible and slides it out from its position to the parent edge in the given direction.

static @NonNull ModifiersBuilders.EnterTransition
@RequiresSchemaVersion(major = 1, minor = 200)
slideIn(int slideDirection)

Enter content transition animation that slides in element when entering the layout into its position from the parent edge in the given direction.

static @NonNull ModifiersBuilders.ExitTransition
@RequiresSchemaVersion(major = 1, minor = 200)
slideOut(int slideDirection)

Exit content transition animation that slides out element when exiting the layout from its position to the parent edge in the given direction.

Public methods

fadeIn

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull ModifiersBuilders.EnterTransition fadeIn()

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible.

fadeInSlideIn

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull ModifiersBuilders.EnterTransition fadeInSlideIn(int slideDirection)

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible and slides it in into its position from the parent edge in the given direction.

Parameters
int slideDirection

The direction for sliding in part of transition.

fadeOut

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull ModifiersBuilders.ExitTransition fadeOut()

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible.

fadeOutSlideOut

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull ModifiersBuilders.ExitTransition fadeOutSlideOut(int slideDirection)

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible and slides it out from its position to the parent edge in the given direction.

Parameters
int slideDirection

The direction for sliding in part of transition.

slideIn

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull ModifiersBuilders.EnterTransition slideIn(int slideDirection)

Enter content transition animation that slides in element when entering the layout into its position from the parent edge in the given direction.

slideOut

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull ModifiersBuilders.ExitTransition slideOut(int slideDirection)

Exit content transition animation that slides out element when exiting the layout from its position to the parent edge in the given direction.