LazyColumnItemScrollProgress

sealed interface LazyColumnItemScrollProgress


Scroll progress of an item in a LazyColumn before any modifications to the item's height are applied (using LazyColumnItemScope.transformedHeight modifier).

Summary

Public properties

Float

The offset as a fraction of the bottom of the item relative to the list container.

Float

The offset as a fraction of the top of the item relative to the list container.

Public properties

bottomOffsetFraction

Added in 1.5.0-alpha01
val bottomOffsetFractionFloat

The offset as a fraction of the bottom of the item relative to the list container. Is within (0, 1) when item is inside the screen and could exceed 1 when the bottom of item is off the screen. Value is calculated from the top of the container. This value is calculated before any height modifications are applied (using LazyColumnItemScope.transformedHeight modifier).

topOffsetFraction

Added in 1.5.0-alpha01
val topOffsetFractionFloat

The offset as a fraction of the top of the item relative to the list container. Is within (0, 1) when item is inside the screen and could be negative if the top of the item is off the screen. Value is calculated from the top of the container. This value is calculated before any height modifications are applied (using LazyColumnItemScope.transformedHeight modifier).