Fixed

data class Fixed : TableColumnWidth.Inflexible
kotlin.Any
   ↳ androidx.ui.layout.TableColumnWidth
   ↳ androidx.ui.layout.TableColumnWidth.Inflexible
   ↳ androidx.ui.layout.TableColumnWidth.Fixed

Sizes the column to a specific width.

Summary

Public constructors

<init>(width: Dp)

Sizes the column to a specific width.

Public methods

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

Returns the ideal width of the column.

Inherited functions

Public constructors

<init>

Fixed(width: Dp)

Sizes the column to a specific width.

Public methods

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.