Source set: Common
public class StaggeredGridItemSpan private constructor(internal val value: Int)
Span defines a number of lanes (columns in vertical grid/rows in horizontal grid) for staggered grid items. Two variations of span are supported:
- item taking a single lane (
SingleLane); - item all lanes in line (
FullLine). By default, staggered grid usesSingleLanefor all
items.
Members
Companion
Source set: Common
public companion object
Properties
FullLine
Source set: Common
public val FullLine: StaggeredGridItemSpan = StaggeredGridItemSpan(0)
Force item to occupy whole line in cross axis.
SingleLane
Source set: Common
public val SingleLane: StaggeredGridItemSpan = StaggeredGridItemSpan(1)
Force item to use a single lane.