RecyclerView.EdgeEffectFactory

public static class RecyclerView.EdgeEffectFactory
extends Object

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.EdgeEffectFactory


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

Summary

Nested classes

@interface RecyclerView.EdgeEffectFactory.EdgeDirection

 

Constants

int DIRECTION_BOTTOM

Direction constant for the bottom edge

int DIRECTION_LEFT

Direction constant for the left edge

int DIRECTION_RIGHT

Direction constant for the right edge

int DIRECTION_TOP

Direction constant for the top edge

Public constructors

RecyclerView.EdgeEffectFactory()

Protected methods

EdgeEffect createEdgeEffect(RecyclerView view, int direction)

Create a new EdgeEffect for the provided direction.

Inherited methods

Constants

DIRECTION_BOTTOM

public static final int DIRECTION_BOTTOM

Direction constant for the bottom edge

Constant Value: 3 (0x00000003)

DIRECTION_LEFT

public static final int DIRECTION_LEFT

Direction constant for the left edge

Constant Value: 0 (0x00000000)

DIRECTION_RIGHT

public static final int DIRECTION_RIGHT

Direction constant for the right edge

Constant Value: 2 (0x00000002)

DIRECTION_TOP

public static final int DIRECTION_TOP

Direction constant for the top edge

Constant Value: 1 (0x00000001)

Public constructors

RecyclerView.EdgeEffectFactory

public RecyclerView.EdgeEffectFactory ()

Protected methods

createEdgeEffect

protected EdgeEffect createEdgeEffect (RecyclerView view, 
                int direction)

Create a new EdgeEffect for the provided direction.

Parameters
view RecyclerView

direction int

Returns
EdgeEffect