added in version 1.0.0
belongs to Maven artifact androidx.recyclerview:recyclerview:1.0.0-beta01

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

added in version 1.0.0
public static final int DIRECTION_BOTTOM

Direction constant for the bottom edge

Constant Value: 3 (0x00000003)

DIRECTION_LEFT

added in version 1.0.0
public static final int DIRECTION_LEFT

Direction constant for the left edge

Constant Value: 0 (0x00000000)

DIRECTION_RIGHT

added in version 1.0.0
public static final int DIRECTION_RIGHT

Direction constant for the right edge

Constant Value: 2 (0x00000002)

DIRECTION_TOP

added in version 1.0.0
public static final int DIRECTION_TOP

Direction constant for the top edge

Constant Value: 1 (0x00000001)

Public constructors

RecyclerView.EdgeEffectFactory

added in version 1.0.0
public RecyclerView.EdgeEffectFactory ()

Protected methods

createEdgeEffect

added in version 1.0.0
protected EdgeEffect createEdgeEffect (RecyclerView view, 
                int direction)

Create a new EdgeEffect for the provided direction.

Parameters
view RecyclerView

direction int

Returns
EdgeEffect