belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
RecyclerView.SmoothScroller
public
static
abstract
class
RecyclerView.SmoothScroller
extends Object
java.lang.Object | |
↳ | android.support.v7.widget.RecyclerView.SmoothScroller |
![]() |
Base class for smooth scrolling. Handles basic tracking of the target view position and provides methods to trigger a programmatic scroll.
See also:
Summary
Nested classes | |
---|---|
class |
RecyclerView.SmoothScroller.Action
Holds information about a smooth scroll request by a |
interface |
RecyclerView.SmoothScroller.ScrollVectorProvider
An interface which is optionally implemented by custom |
Public constructors | |
---|---|
RecyclerView.SmoothScroller()
|
Public methods | |
---|---|
PointF
|
computeScrollVectorForPosition(int targetPosition)
Compute the scroll vector for a given target position. |
View
|
findViewByPosition(int position)
|
int
|
getChildCount()
|
int
|
getChildPosition(View view)
|
RecyclerView.LayoutManager
|
getLayoutManager()
|
int
|
getTargetPosition()
Returns the adapter position of the target item |
void
|
instantScrollToPosition(int position)
This method was deprecated
in API level 24.1.0.
Use |
boolean
|
isPendingInitialRun()
Returns true if SmoothScroller has been started but has not received the first animation callback yet. |
boolean
|
isRunning()
|
void
|
setTargetPosition(int targetPosition)
|
Protected methods | |
---|---|
void
|
normalize(PointF scrollVector)
Normalizes the vector. |
void
|
onChildAttachedToWindow(View child)
|
abstract
void
|
|