scrollToId

fun scrollToId(id: Any, @Px offset: Int = 0)

Scroll the LazyCollection so that the child with the given id is fully visible. For an animated scroll use smoothScrollToId.

Parameters

id

The id of the child to scroll to

offset

Attempt to offset the child by this number of pixels from the start of the Collection.