LayoutResult

interface LayoutResult
androidx.ui.core.MeasureScope.LayoutResult

Interface holding the size and alignment lines of the measured layout, as well as the children positioning logic. placeChildren is the function used for positioning children. Placeable.place should be called on children inside placeChildren. The alignment lines can be used by the parent layouts to decide layout, and can be queried using the Placeable.get operator. Note that alignment lines will be inherited by parent layouts, such that indirect parents will be able to query them as well.

Summary

Public methods

abstract Unit
placeChildren(placementScope: Placeable.PlacementScope)

Properties

abstract Map<AlignmentLine, IntPx>

abstract IntPx

abstract IntPx

Public methods

placeChildren

abstract fun placeChildren(placementScope: Placeable.PlacementScope): Unit

Properties

alignmentLines

abstract val alignmentLines: Map<AlignmentLine, IntPx>

height

abstract val height: IntPx

width

abstract val width: IntPx