Source set: Android
public interface SpatialAlignment
An interface to calculate the position of a sized box inside an available 3D space. SpatialAlignment is often used to define the alignment of a layout inside a parent layout.
Functions
align
public fun align(
size: IntVolumeSize,
space: IntVolumeSize,
layoutDirection: LayoutDirection,
): Vector3
Provides the origin-based position of the content in the available space.
Parameters
| size | The content size in pixels. |
| space | The available space in pixels. |
| layoutDirection | LTR or RTL. |