materialSharedAxisXOut

fun materialSharedAxisXOut(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition(source)

materialSharedAxisXOut allows to switch a layout with shared X-axis exit transition.

Parameters

forward

whether the direction of the animation is forward.

slideDistance

the slide distance of the exit transition.

durationMillis

the duration of the exit transition.