Row

Composable Function

Android
@Composable
fun Row(
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    verticalAlignment: Alignment.Vertical = Alignment.Top,
    content: @Composable RowScope.() -> Unit
)

A layout composable with content, which lays its children out in a Row.

By default, the Row will size itself to fit the content, unless a Dimension constraint has been provided. When children are smaller than the size of the Row, they will be placed within the available space subject to verticalAlignment and horizontalAlignment.

Note for App Widgets: Row supports up to 10 child elements. Any additional elements will be truncated from the output.

Parameters

modifierThe modifier to be applied to the layout.
horizontalAlignmentThe horizontal alignment to apply to the set of children, when they do not consume the full width of the Row (i.e. whether to push the children towards the start, center or end of the Row).
verticalAlignmentThe horizontal alignment to apply to children when they are smaller than the height of the Row
contentThe content inside the Row