Class

OrbiterAlignment.TopCenter

Top-Center edge alignment.

Source set: Android
public class TopCenter(
        edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
        offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
    ) : OrbiterAlignment(SpatialAlignment.TopCenter, edgeOffsetType, offset)

Top-Center edge alignment.

Parameters

edgeOffsetType boundary offset behavior relative to the parent bounds
offset manual offset applied to the orbiter after the edgeOffsetType's offset is applied. This offset will automatically adjust the horizontal offset according to the layout direction: when the layout direction is LTR, positive x offsets will move the content to the right and when the layout direction is RTL, positive x offsets will move the content to the left.

Content updated: