Register now for Android Dev Summit 2019!

EdgeEffectFactory

open class EdgeEffectFactory
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.EdgeEffectFactory

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

Summary

Nested classes

Constants

static Int

Direction constant for the bottom edge

static Int

Direction constant for the left edge

static Int

Direction constant for the right edge

static Int

Direction constant for the top edge

Public constructors

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

Protected methods

open EdgeEffect
createEdgeEffect(@NonNull view: RecyclerView, direction: Int)

Create a new EdgeEffect for the provided direction.

Constants

DIRECTION_BOTTOM

static val DIRECTION_BOTTOM: Int

Direction constant for the bottom edge

Value: 3

DIRECTION_LEFT

static val DIRECTION_LEFT: Int

Direction constant for the left edge

Value: 0

DIRECTION_RIGHT

static val DIRECTION_RIGHT: Int

Direction constant for the right edge

Value: 2

DIRECTION_TOP

static val DIRECTION_TOP: Int

Direction constant for the top edge

Value: 1

Public constructors

<init>

EdgeEffectFactory()

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

Protected methods

createEdgeEffect

@NonNull protected open fun createEdgeEffect(@NonNull view: RecyclerView, direction: Int): EdgeEffect

Create a new EdgeEffect for the provided direction.