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 | |
---|---|
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
EdgeEffectFactory
public 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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-30 UTC.