added in version 22.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
RecyclerView.SmoothScroller.Action
public
static
class
RecyclerView.SmoothScroller.Action
extends Object
java.lang.Object | |
↳ | android.support.v7.widget.RecyclerView.SmoothScroller.Action |
Holds information about a smooth scroll request by a RecyclerView.SmoothScroller
.
Summary
Constants | |
---|---|
int |
UNDEFINED_DURATION
|
Public constructors | |
---|---|
RecyclerView.SmoothScroller.Action(int dx, int dy)
|
|
RecyclerView.SmoothScroller.Action(int dx, int dy, int duration)
|
|
RecyclerView.SmoothScroller.Action(int dx, int dy, int duration, Interpolator interpolator)
|
Public methods | |
---|---|
int
|
getDuration()
|
int
|
getDx()
|
int
|
getDy()
|
Interpolator
|
getInterpolator()
|
void
|
jumpTo(int targetPosition)
Instead of specifying pixels to scroll, use the target position to jump using
|
void
|
setDuration(int duration)
|
void
|
setDx(int dx)
|
void
|
setDy(int dy)
|
void
|
setInterpolator(Interpolator interpolator)
Sets the interpolator to calculate scroll steps |
void
|
update(int dx, int dy, int duration, Interpolator interpolator)
Updates the action with given parameters. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
UNDEFINED_DURATION
added in version 22.1.0
int UNDEFINED_DURATION
Constant Value: -2147483648 (0x80000000)
Public constructors
RecyclerView.SmoothScroller.Action
added in version 22.1.0
RecyclerView.SmoothScroller.Action (int dx, int dy)
Parameters | |
---|---|
dx |
int : Pixels to scroll horizontally |
dy |