CardListPosition

The position of a row inside a card group, mirroring COUI's COUICardListHelper constants (NONE = 0, HEAD = 1, MIDDLE = 2, TAIL = 3, FULL = 4).

COUI's COUICardListSelectedItemLayout.setPadding uses the position to decide which of the card's outer edges get an extra CardListPosition.HeadOrTailPadding of vertical padding, and grows the row's minimum height by the same amount. Only the edges that are visually rounded receive it, so a standalone row (both edges rounded) gains the padding twice while a middle row gains none.

See also

Entries

Link copied to clipboard

Not part of a card group; no rounded edges and no extra padding.

Link copied to clipboard

First row of a multi-row group; the top edge is rounded.

Link copied to clipboard

A row with a sibling on both sides; neither edge is rounded.

Link copied to clipboard

Last row of a multi-row group; the bottom edge is rounded.

Link copied to clipboard

The only row of the group; both edges are rounded.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.