TvLazyGridItemSpanScope

@TvLazyGridScopeMarker
sealed interface TvLazyGridItemSpanScope


Scope of lambdas used to calculate the spans of items in lazy grids.

Summary

Public properties

Int

The max current line (horizontal for vertical grids) the item can occupy, such that it will be positioned on the current line.

Int

The max line span (horizontal for vertical grids) an item can occupy.

Public properties

maxCurrentLineSpan

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val maxCurrentLineSpanInt

The max current line (horizontal for vertical grids) the item can occupy, such that it will be positioned on the current line.

For example if TvLazyVerticalGrid has 3 columns this value will be 3 for the first cell in the line, 2 for the second cell, and 1 for the last one. If you return a span count larger than maxCurrentLineSpan this means we can't fit this cell into the current line, so the cell will be positioned on the next line.

maxLineSpan

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val maxLineSpanInt

The max line span (horizontal for vertical grids) an item can occupy. This will be the number of columns in vertical grids or the number of rows in horizontal grids.

For example if TvLazyVerticalGrid has 3 columns this value will be 3 for each cell.