RecyclerView.EdgeEffectFactory


class RecyclerView.EdgeEffectFactory


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

Summary

Nested types

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

Constants

const Int

Direction constant for the bottom edge

const Int

Direction constant for the left edge

const Int

Direction constant for the right edge

const Int

Direction constant for the top edge

Public constructors

Protected functions

EdgeEffect

Create a new EdgeEffect for the provided direction.

Constants

DIRECTION_BOTTOM

Added in 1.0.0
const val DIRECTION_BOTTOM = 3: Int

Direction constant for the bottom edge

DIRECTION_LEFT

Added in 1.0.0
const val DIRECTION_LEFT = 0: Int

Direction constant for the left edge

DIRECTION_RIGHT

Added in 1.0.0
const val DIRECTION_RIGHT = 2: Int

Direction constant for the right edge

DIRECTION_TOP

Added in 1.0.0
const val DIRECTION_TOP = 1: Int

Direction constant for the top edge

Public constructors

EdgeEffectFactory

Added in 1.0.0
EdgeEffectFactory()

Protected functions

createEdgeEffect

Added in 1.0.0
protected fun createEdgeEffect(
    view: RecyclerView,
    @RecyclerView.EdgeEffectFactory.EdgeDirection direction: Int
): EdgeEffect

Create a new EdgeEffect for the provided direction.