SmoothScroller

abstract class SmoothScroller(source)

Base class for smooth scrolling. Handles basic tracking of the target view position and provides methods to trigger a programmatic scroll.

An instance of SmoothScroller is only intended to be used once. You should create a new instance for each call to startSmoothScroll.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class Action
Holds information about a smooth scroll request by a SmoothScroller.
Link copied to clipboard
An interface which is optionally implemented by custom RecyclerView.LayoutManager to provide a hint to a SmoothScroller about the location of the target position.

Functions

Link copied to clipboard
Compute the scroll vector for a given target position.
Link copied to clipboard
open fun findViewByPosition(position: Int): View
Link copied to clipboard
open fun getChildCount(): Int
Link copied to clipboard
open fun getChildPosition(view: View): Int
Link copied to clipboard
Returns the adapter position of the target item
Link copied to clipboard
open fun instantScrollToPosition(position: Int)
Link copied to clipboard
Returns true if SmoothScroller has been started but has not received the first animation callback yet.
Link copied to clipboard
open fun isRunning(): Boolean
Link copied to clipboard
open fun setTargetPosition(targetPosition: Int)