TableColumnWidth

abstract class TableColumnWidth
kotlin.Any
   ↳ androidx.ui.layout.TableColumnWidth

Used to specify the size of a Table's column.

Summary

Nested classes

data

Sizes the column to a specific width.

data

Sizes the column by taking a part of the remaining space according to flex once all the inflexible columns have been measured.

data

Sizes the column to a fraction of the table's maximum width constraint.

abstract

An inflexible column has a fixed size which is computed by preferredWidth.

data

Sizes the column to the size that is the maximum of two column width specifications.

Sizes the column to the largest of the maximum intrinsic widths of the children in that column (i.

data

Sizes the column to the size that is the minimum of two column width specifications.

Sizes the column to the largest of the minimum intrinsic widths of the children in that column (i.

Sizes the column to the width of the widest child in that column.

Public methods

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

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

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

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

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

Returns the ideal width of the column.

Public methods

maxIntrinsicWidth

open 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

open 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

abstract 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.