RecyclerView.EdgeEffectFactory
public class RecyclerView.EdgeEffectFactory
EdgeEffectFactory lets you customize the over-scroll edge effect for RecyclerViews.
| See also | |
|---|---|
setEdgeEffectFactory |
Summary
Nested types |
|---|
@Retention(value = RetentionPolicy.SOURCE) |
Constants |
|
|---|---|
static final int |
DIRECTION_BOTTOM = 3Direction constant for the bottom edge |
static final int |
DIRECTION_LEFT = 0Direction constant for the left edge |
static final int |
DIRECTION_RIGHT = 2Direction constant for the right edge |
static final int |
DIRECTION_TOP = 1Direction constant for the top edge |
Public constructors |
|---|
Protected methods |
|
|---|---|
@NonNull EdgeEffect |
createEdgeEffect(Create a new EdgeEffect for the provided direction. |
Constants
DIRECTION_BOTTOM
Added in 1.0.0
public static final int DIRECTION_BOTTOM = 3
Direction constant for the bottom edge
DIRECTION_LEFT
Added in 1.0.0
public static final int DIRECTION_LEFT = 0
Direction constant for the left edge
DIRECTION_RIGHT
Added in 1.0.0
public static final int DIRECTION_RIGHT = 2
Direction constant for the right edge
DIRECTION_TOP
Added in 1.0.0
public static final int DIRECTION_TOP = 1
Direction constant for the top edge
Public constructors
Protected methods
createEdgeEffect
Added in 1.0.0
protected @NonNull EdgeEffect createEdgeEffect(
@NonNull RecyclerView view,
@RecyclerView.EdgeEffectFactory.EdgeDirection int direction
)
Create a new EdgeEffect for the provided direction.