then

infix fun Layout.then(onLayout: (PositionableContainer) -> Unit): Layout

Provides a way to get notified each time a Layout is done positioning.

val layout = MyLayout then { justLayedOutContainer ->
// do something
}

Return

a Layout that performs the positioning of the original and then calls onLayout

Parameters

onLayout

is called after laying out a container