columns

fun columns(count: Int = 2, gap: Dp = Dp(16f), spacing: Dp = Dp(6f), block: ColumnScope.() -> Unit)

Appends a newspaper-style multi-column block: the children added in block flow into count equal-width columns, balanced so the columns end up roughly the same height while keeping source order.

The block participates in page breaking as a single unit — columns do not continue onto the next page. Split very long content into several columns { } blocks when it can exceed one page.

Parameters

count

number of columns; must be positive.

gap

horizontal space between adjacent columns.

spacing

vertical gap between items inside a column.