MeasurePolicy

fun interface MeasurePolicy

Functions

Link copied to clipboard
open fun maxIntrinsicHeight(measurables: List<IntrinsicMeasurable>, width: Int): Int

The function used to calculate IntrinsicMeasurable.maxIntrinsicHeight. It represents the minimum height such that increasing it further will not decrease the minimum intrinsic width.

Link copied to clipboard
open fun maxIntrinsicWidth(measurables: List<IntrinsicMeasurable>, height: Int): Int

The function used to calculate IntrinsicMeasurable.maxIntrinsicWidth. It represents the minimum width such that increasing it further will not decrease the minimum intrinsic height.

Link copied to clipboard
abstract fun MeasureScope.measure(measurables: List<Measurable>, constraints: Constraints): MeasureResult
Link copied to clipboard
open fun minIntrinsicHeight(measurables: List<IntrinsicMeasurable>, width: Int): Int

The function used to calculate IntrinsicMeasurable.minIntrinsicHeight. It represents the minimum height this layout can take, given a specific width, such that the content of the layout will be painted correctly.

Link copied to clipboard
open fun minIntrinsicWidth(measurables: List<IntrinsicMeasurable>, height: Int): Int

The function used to calculate IntrinsicMeasurable.minIntrinsicWidth. It represents the minimum width this layout can take, given a specific height, such that the content of the layout can be painted correctly.