RecyclerView.EdgeEffectFactory


public class RecyclerView.EdgeEffectFactory


EdgeEffectFactory lets you customize the over-scroll edge effect for RecyclerViews.

Summary

Nested types

@Retention(value = RetentionPolicy.SOURCE)
@IntDef(value = )
public annotation RecyclerView.EdgeEffectFactory.EdgeDirection

Constants

static final int

Direction constant for the bottom edge

static final int

Direction constant for the left edge

static final int

Direction constant for the right edge

static final int

Direction constant for the top edge

Public constructors

Protected methods

@NonNull EdgeEffect

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

EdgeEffectFactory

Added in 1.0.0
public EdgeEffectFactory()

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.