{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

MeasureResult

public interface MeasureResult


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.placeAt 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 @NonNull Map<@NonNull AlignmentLine, @NonNull Integer>
abstract int
abstract int
abstract void

Public methods

getAlignmentLines

abstract @NonNull Map<@NonNull AlignmentLine, @NonNull IntegergetAlignmentLines()

getHeight

abstract int getHeight()

getWidth

abstract int getWidth()

placeChildren

abstract void placeChildren()