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

Measured

public interface Measured

Known direct subclasses
Placeable

A Placeable corresponds to a child layout that can be positioned by its parent layout.


A Measured corresponds to a layout that has been measured by its parent layout.

Summary

Public methods

abstract int
get(@NonNull AlignmentLine alignmentLine)

Returns the position of an alignment line, or AlignmentLine.Unspecified if the line is not provided.

abstract int

The measured height of the layout.

abstract int

The measured width of the layout.

default Object

Data provided by the ParentDataModifier applied to the layout.

Public methods

get

abstract int get(@NonNull AlignmentLine alignmentLine)

Returns the position of an alignment line, or AlignmentLine.Unspecified if the line is not provided.

getMeasuredHeight

abstract int getMeasuredHeight()

The measured height of the layout. This might not respect the measurement constraints.

getMeasuredWidth

abstract int getMeasuredWidth()

The measured width of the layout. This might not respect the measurement constraints.

getParentData

default Object getParentData()

Data provided by the ParentDataModifier applied to the layout.