-
public final class MaterialSharedAxisKt
-
-
Method Summary
Modifier and Type Method Description final static IntegerrememberSlideDistance(Dp slideDistance)Returns the provided Dp as an Int value by the LocalDensity. final static ContentTransformmaterialSharedAxisX(Boolean forward, Integer slideDistance, Integer durationMillis)materialSharedAxisX allows to switch a layout with shared X-axis transition. final static EnterTransitionmaterialSharedAxisXIn(Boolean forward, Integer slideDistance, Integer durationMillis)materialSharedAxisXIn allows to switch a layout with shared X-axis enter transition. final static ExitTransitionmaterialSharedAxisXOut(Boolean forward, Integer slideDistance, Integer durationMillis)materialSharedAxisXOut allows to switch a layout with shared X-axis exit transition. final static ContentTransformmaterialSharedAxisY(Boolean forward, Integer slideDistance, Integer durationMillis)materialSharedAxisY allows to switch a layout with shared Y-axis transition. final static EnterTransitionmaterialSharedAxisYIn(Boolean forward, Integer slideDistance, Integer durationMillis)materialSharedAxisYIn allows to switch a layout with shared Y-axis enter transition. final static ExitTransitionmaterialSharedAxisYOut(Boolean forward, Integer slideDistance, Integer durationMillis)materialSharedAxisYOut allows to switch a layout with shared Y-axis exit transition. final static ContentTransformmaterialSharedAxisZ(Boolean forward, Integer durationMillis)materialSharedAxisZ allows to switch a layout with shared Z-axis transition. final static EnterTransitionmaterialSharedAxisZIn(Boolean forward, Integer durationMillis)materialSharedAxisZIn allows to switch a layout with shared Z-axis enter transition. final static ExitTransitionmaterialSharedAxisZOut(Boolean forward, Integer durationMillis)materialSharedAxisZOut allows to switch a layout with shared Z-axis exit transition. -
-
Method Detail
-
rememberSlideDistance
@Composable() final static Integer rememberSlideDistance(Dp slideDistance)
Returns the provided Dp as an Int value by the LocalDensity.
- Parameters:
slideDistance- Value to the slide distance dimension, 30dp by default.
-
materialSharedAxisX
final static ContentTransform materialSharedAxisX(Boolean forward, Integer slideDistance, Integer durationMillis)
materialSharedAxisX allows to switch a layout with shared X-axis transition.
- Parameters:
forward- whether the direction of the animation is forward.slideDistance- the slide distance of transition.durationMillis- the duration of transition.
-
materialSharedAxisXIn
final static EnterTransition materialSharedAxisXIn(Boolean forward, Integer slideDistance, Integer durationMillis)
materialSharedAxisXIn allows to switch a layout with shared X-axis enter transition.
- Parameters:
forward- whether the direction of the animation is forward.slideDistance- the slide distance of the enter transition.durationMillis- the duration of the enter transition.
-
materialSharedAxisXOut
final static ExitTransition materialSharedAxisXOut(Boolean forward, Integer slideDistance, Integer durationMillis)
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.
-
materialSharedAxisY
final static ContentTransform materialSharedAxisY(Boolean forward, Integer slideDistance, Integer durationMillis)
materialSharedAxisY allows to switch a layout with shared Y-axis transition.
- Parameters:
forward- whether the direction of the animation is forward.slideDistance- the slide distance of transition.durationMillis- the duration of transition.
-
materialSharedAxisYIn
final static EnterTransition materialSharedAxisYIn(Boolean forward, Integer slideDistance, Integer durationMillis)
materialSharedAxisYIn allows to switch a layout with shared Y-axis enter transition.
- Parameters:
forward- whether the direction of the animation is forward.slideDistance- the slide distance of the enter transition.durationMillis- the duration of the enter transition.
-
materialSharedAxisYOut
final static ExitTransition materialSharedAxisYOut(Boolean forward, Integer slideDistance, Integer durationMillis)
materialSharedAxisYOut allows to switch a layout with shared Y-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.
-
materialSharedAxisZ
final static ContentTransform materialSharedAxisZ(Boolean forward, Integer durationMillis)
materialSharedAxisZ allows to switch a layout with shared Z-axis transition.
- Parameters:
forward- whether the direction of the animation is forward.durationMillis- the duration of transition.
-
materialSharedAxisZIn
final static EnterTransition materialSharedAxisZIn(Boolean forward, Integer durationMillis)
materialSharedAxisZIn allows to switch a layout with shared Z-axis enter transition.
- Parameters:
forward- whether the direction of the animation is forward.durationMillis- the duration of the enter transition.
-
materialSharedAxisZOut
final static ExitTransition materialSharedAxisZOut(Boolean forward, Integer durationMillis)
materialSharedAxisZOut allows to switch a layout with shared Z-axis exit transition.
- Parameters:
forward- whether the direction of the animation is forward.durationMillis- the duration of the exit transition.
-
-
-
-