ScalingLazyColumnRotaryScrollAdapter

An implementation of rotary scroll adapter for ScalingLazyColumn

Constructors

Link copied to clipboard
constructor(scrollableState: ScalingLazyListState)

Properties

Link copied to clipboard

A scrollable state. Used for performing scroll when Rotary events received

Functions

Link copied to clipboard
open override fun averageItemSize(): Float

Calculates an average height of an item by taking an average from visible items height.

Link copied to clipboard
open override fun currentItemIndex(): Int

Current (centred) item index

Link copied to clipboard
open override fun currentItemOffset(): Float

An offset from the item centre

Link copied to clipboard
open override fun totalItemsCount(): Int

The total count of items in ScalingLazyColumn