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

IntrinsicMeasurable

public interface IntrinsicMeasurable

Known direct subclasses
Measurable

A part of the composition that can be measured.


A part of the composition that can be measured. This represents a layout. The instance should never be stored.

Summary

Public methods

abstract Object

Data provided by the ParentDataModifier.

abstract int
maxIntrinsicHeight(int width)

Calculates the smallest height beyond which increasing the height never decreases the width.

abstract int
maxIntrinsicWidth(int height)

Calculates the smallest width beyond which increasing the width never decreases the height.

abstract int
minIntrinsicHeight(int width)

Calculates the minimum height that the layout can be such that the content of the layout will be painted correctly.

abstract int
minIntrinsicWidth(int height)

Calculates the minimum width that the layout can be such that the content of the layout will be painted correctly.

Public methods

getParentData

abstract Object getParentData()

Data provided by the ParentDataModifier.

maxIntrinsicHeight

abstract int maxIntrinsicHeight(int width)

Calculates the smallest height beyond which increasing the height never decreases the width.

maxIntrinsicWidth

abstract int maxIntrinsicWidth(int height)

Calculates the smallest width beyond which increasing the width never decreases the height.

minIntrinsicHeight

abstract int minIntrinsicHeight(int width)

Calculates the minimum height that the layout can be such that the content of the layout will be painted correctly.

minIntrinsicWidth

abstract int minIntrinsicWidth(int height)

Calculates the minimum width that the layout can be such that the content of the layout will be painted correctly.