Hi.
On the layout codelab it shows this to create a new custom layout:
Layout(
modifier = modifier,
content = content
) { measurables, constraints ->
// Don't constrain child views further, measure them with given constraints
// List of measured children
val placeables = measurables.map { measurable ->
// Measure each child
measurable.measure(constraints)
}
}
But, with RC01, whenever I try to import and create one,
Layout
has a new parameter called
measurePolicy: MeasurePolicy
... what should we do with this one?