Scroller

Class that keeps track of the scroll position of provided RecyclerView, and provides APIs to request scroll to a certain position

Constructors

Link copied to clipboard
constructor(recyclerView: RecyclerView)

Functions

Link copied to clipboard
open fun onScrolled(rv: RecyclerView, dx: Int, dy: Int)
Link copied to clipboard
open fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int)
Link copied to clipboard
open fun scrollToPositionX(targetPositionX: Int)
Link copied to clipboard
open fun scrollToPositionY(targetPositionY: Int)