MeasureNode

interface MeasureNode(source)

A node that determines its size from constraints and optionally measured direct children.

The returned size is retained until this node is measured again with different constraints or after measurement invalidation. A clean equal-constraint pass may therefore skip this callback.

Inheritors

Functions

Link copied to clipboard
abstract fun measure(scope: MeasureScope, constraints: Constraints): IntSize

Measures this node on the owning tree thread.