ScrollerDelegate

Types

Link copied to clipboard
Link copied to clipboard
class SectionTreeScroller(sectionTree: SectionTree) : ScrollerDelegate

Functions

Link copied to clipboard
abstract 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.

Link copied to clipboard
abstract fun scrollToIndex(index: Int, @Px offset: Int = 0)

Scroll the LazyCollection so that the child at the given index is fully visible. For an animated scroll use smoothScrollToIndex.

Link copied to clipboard
abstract fun smoothScrollToId(    id: Any,     @Px offset: Int = 0,     smoothScrollAlignmentType: SmoothScrollAlignmentType? = SmoothScrollAlignmentType.DEFAULT)

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

Link copied to clipboard
abstract fun smoothScrollToIndex(    index: Int,     @Px offset: Int = 0,     smoothScrollAlignmentType: SmoothScrollAlignmentType? = SmoothScrollAlignmentType.DEFAULT)

Perform an animated scroll on the LazyCollection so that the child at the given index is fully visible. For an instantaneous scroll use scrollToIndex.