StaggeredGridItemSpan
Class
Common
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 usesSingleLane
for all items.
Companion Object
Properties
Common
val FullLine = StaggeredGridItemSpan(0)
Force item to occupy whole line in cross axis.
Common
val SingleLane = StaggeredGridItemSpan(1)
Force item to use a single lane.