이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

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.