TransformingLazyColumnItemScrollProgress

value class TransformingLazyColumnItemScrollProgress


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

Summary

Public constructors

TransformingLazyColumnItemScrollProgress(
    topOffsetFraction: Float,
    bottomOffsetFraction: Float
)

Constructs a TransformingLazyColumnItemScrollProgress with two offset fraction Float values.

Public properties

Float

The bottom offset (between the top of the list container and the bottom of the item) as a fraction of the height of the list container.

Float

The top offset (between the top of the list container and the top of the item) as a fraction of the height of the list container.

Public constructors

TransformingLazyColumnItemScrollProgress

Added in 1.5.0-alpha07
TransformingLazyColumnItemScrollProgress(
    topOffsetFraction: Float,
    bottomOffsetFraction: Float
)

Constructs a TransformingLazyColumnItemScrollProgress with two offset fraction Float values.

Parameters
topOffsetFraction: Float

The top offset (between the top of the list container and the top of the item) as a fraction of the height of the list container.

bottomOffsetFraction: Float

The bottom offset (between the top of the list container and the bottom of the item) as a fraction of the height of the list container.

Public properties

bottomOffsetFraction

val bottomOffsetFractionFloat

The bottom offset (between the top of the list container and the bottom of the item) as a fraction of the height of 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 TransformingLazyColumnItemScope.transformedHeight modifier).

topOffsetFraction

val topOffsetFractionFloat

The top offset (between the top of the list container and the top of the item) as a fraction of the height of 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 TransformingLazyColumnItemScope.transformedHeight modifier).