LayoutModifier

interface LayoutModifier : Modifier.Element
androidx.ui.core.LayoutModifier

A Modifier.Element that changes the way a UI component is measured and laid out.

Summary

Public methods

open IntPx

Determines the modified maximum intrinsic height of measurable.

open IntPx

Determines the modified maximum intrinsic width of measurable.

open IntPx

Determines the modified minimum intrinsic height of measurable.

open IntPx

Determines the modified minimum intrinsic width of measurable.

open IntPx?

Returns the modified position of line given its unmodified value.

open Constraints

Modifies constraints for performing measurement of the modified layout element.

open Any?

Provides a parentData given the parentData already provided through the modifier's chain.

open IntPxPosition
DensityScope.modifyPosition(childPosition: IntPxPosition, childSize: IntPxSize, containerSize: IntPxSize)

Returns the position of a modified child of size childSize within a container of size containerSize.

open IntPxSize
DensityScope.modifySize(constraints: Constraints, childSize: IntPxSize)

Returns the container size of a modified layout element given the original container measurement constraints and the measured childSize.

Inherited functions

Public methods

maxIntrinsicHeightOf

open fun DensityScope.maxIntrinsicHeightOf(
    measurable: Measurable,
    width: IntPx
): IntPx

Determines the modified maximum intrinsic height of measurable. See Measurable.maxIntrinsicHeight.

maxIntrinsicWidthOf

open fun DensityScope.maxIntrinsicWidthOf(
    measurable: Measurable,
    height: IntPx
): IntPx

Determines the modified maximum intrinsic width of measurable. See Measurable.maxIntrinsicWidth.

minIntrinsicHeightOf

open fun DensityScope.minIntrinsicHeightOf(
    measurable: Measurable,
    width: IntPx
): IntPx

Determines the modified minimum intrinsic height of measurable. See Measurable.minIntrinsicHeight.

minIntrinsicWidthOf

open fun DensityScope.minIntrinsicWidthOf(
    measurable: Measurable,
    height: IntPx
): IntPx

Determines the modified minimum intrinsic width of measurable. See Measurable.minIntrinsicWidth.

modifyAlignmentLine

open fun DensityScope.modifyAlignmentLine(
    line: AlignmentLine,
    value: IntPx?
): IntPx?

Returns the modified position of line given its unmodified value.

modifyConstraints

open fun DensityScope.modifyConstraints(constraints: Constraints): Constraints

Modifies constraints for performing measurement of the modified layout element.

modifyParentData

open fun DensityScope.modifyParentData(parentData: Any?): Any?

Provides a parentData given the parentData already provided through the modifier's chain.

modifyPosition

open fun DensityScope.modifyPosition(
    childPosition: IntPxPosition,
    childSize: IntPxSize,
    containerSize: IntPxSize
): IntPxPosition

Returns the position of a modified child of size childSize within a container of size containerSize.

modifySize

open fun DensityScope.modifySize(
    constraints: Constraints,
    childSize: IntPxSize
): IntPxSize

Returns the container size of a modified layout element given the original container measurement constraints and the measured childSize.