RelativePosition
@ExperimentalMotionApi
class RelativePosition
Relative coordinate space in which KeyPositions are applied.
Summary
Public companion properties |
|
|---|---|
RelativePosition |
The default coordinate space, defined between the ending and starting point of the motion. |
RelativePosition |
The coordinate space defined within the parent layout bounds (the MotionLayout parent). |
RelativePosition |
The coordinate space defined between the ending and starting point of the motion. |
Public companion properties
Delta
val Delta: RelativePosition
The default coordinate space, defined between the ending and starting point of the motion. Aligned to the layout's X and Y axis.
Parent
val Parent: RelativePosition
The coordinate space defined within the parent layout bounds (the MotionLayout parent).
Path
val Path: RelativePosition
The coordinate space defined between the ending and starting point of the motion. Aligned perpendicularly to the shortest line between the start/end.