scrollVerticallyBy

Scroll vertically by dy pixels in screen coordinates and return the distance traveled. The default implementation does nothing and returns 0.

Return

The actual distance scrolled. The return value will be negative if dy was negative and scrolling proceeeded in that direction. Math.abs(result) may be less than dy if a boundary was reached.

Parameters

dy

distance to scroll in pixels. Y increases as scroll position approaches the bottom.

recycler

Recycler to use for fetching potentially cached views for a position

state

Transient state of RecyclerView