LazyListItemInfo
Kotlin
|Java
interface LazyListItemInfo
androidx.compose.foundation.lazy.LazyListItemInfo |
Contains useful information about an individual item in lazy lists like LazyColumn or LazyRow.
Summary
Properties | |
---|---|
abstract Int |
The index of the item in the list. |
abstract Any |
The key of the item which was passed to the item() or items() function. |
abstract Int |
The main axis offset of the item. |
abstract Int |
The main axis size of the item. |
Properties
offset
abstract val offset: Int
The main axis offset of the item. It is relative to the start of the lazy list container.
size
abstract val size: Int
The main axis size of the item. Note that if you emit multiple layouts in the composable slot for the item then this size will be calculated as the sum of their sizes.