← Back to Compose UI
intermediateLayout
Modifier
in
Compose UI
. Since 1.5.0-beta03Overview
Examples
Community Notes
Creates an intermediate layout intended to help morph the layout from the current layout to the lookahead (i.e. pre-calculated future) layout.
This modifier will be invoked after lookahead pass and will have access to the lookahead results in measure. Therefore:
- intermediateLayout measure/layout logic will not affect lookahead pass, but only be invoked during the main measure/layout pass, and 2) measure block can define intermediate changes that morphs the layout in the main pass gradually until it converges lookahead pass.
Overloads
intermediateLayout
@ExperimentalComposeUiApi
fun Modifier.intermediateLayout(
measure: IntermediateMeasureScope.(
measurable: Measurable,
constraints: Constraints,
) -> MeasureResult,
)
Next ComponentAndroidView →