MinIntrinsic

object MinIntrinsic : TableColumnWidth.Inflexible
kotlin.Any
   ↳ androidx.ui.layout.TableColumnWidth
   ↳ androidx.ui.layout.TableColumnWidth.Inflexible
   ↳ androidx.ui.layout.TableColumnWidth.MinIntrinsic

Sizes the column to the largest of the minimum intrinsic widths of the children in that column (i.e. the minimum width such that children can layout/paint themselves correctly).

Note that this is a very expensive way to size a column. For a wrap content behaviour that skips the intrinsic measurements which compute the column width before measuring, use Wrap.

Summary

Public methods

IntPx
maxIntrinsicWidth(cells: List<TableMeasurable>, containerWidth: IntPx, density: Density, availableHeight: IntPx)

Returns the minimum intrinsic width of the column for the given height.

IntPx
minIntrinsicWidth(cells: List<TableMeasurable>, containerWidth: IntPx, density: Density, availableHeight: IntPx)

Returns the minimum intrinsic width of the column for the given height.

IntPx
preferredWidth(cells: List<TableMeasurable>, containerWidth: IntPx, density: Density)

Returns the ideal width of the column.

Inherited functions

Public methods

maxIntrinsicWidth

fun maxIntrinsicWidth(
    cells: List<TableMeasurable>,
    containerWidth: IntPx,
    density: Density,
    availableHeight: IntPx
): IntPx

Returns the minimum intrinsic width of the column for the given height.

This is used for computing the table's intrinsic dimensions. Defaults to preferredWidth.

minIntrinsicWidth

fun minIntrinsicWidth(
    cells: List<TableMeasurable>,
    containerWidth: IntPx,
    density: Density,
    availableHeight: IntPx
): IntPx

Returns the minimum intrinsic width of the column for the given height.

This is used for computing the table's intrinsic dimensions. Defaults to preferredWidth.

preferredWidth

fun preferredWidth(
    cells: List<TableMeasurable>,
    containerWidth: IntPx,
    density: Density
): IntPx

Returns the ideal width of the column.

Note that the column might be wider than this if it is flexible.