public static enum SnappyRecyclerView.Behavior extends java.lang.Enum<SnappyRecyclerView.Behavior>
| Enum Constant and Description |
|---|
NOTIFY_ON_IDLE
Adapter will be notified only on state idle with position of the centered item
onBindViewHolder, onSnapedFromCenter and Callback's onItemCentered will be called
|
NOTIFY_ON_IDLE_AND_NO_POSITION
Adapter will be notified on state idle with position of the centered item
and state dragging with position = -1
onBindViewHolder, onSnapedFromCenter and Callback's onItemCentered will be called
|
NOTIFY_ON_SCROLL
Adapter will be notified with position of the centered item even while dragging
Only Callback's onItemCentered will be called
|
| Modifier and Type | Method and Description |
|---|---|
static SnappyRecyclerView.Behavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SnappyRecyclerView.Behavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnappyRecyclerView.Behavior NOTIFY_ON_IDLE_AND_NO_POSITION
onBindViewHolder, onSnapedFromCenter and Callback's onItemCentered will be called
public static final SnappyRecyclerView.Behavior NOTIFY_ON_IDLE
onBindViewHolder, onSnapedFromCenter and Callback's onItemCentered will be called
public static final SnappyRecyclerView.Behavior NOTIFY_ON_SCROLL
Only Callback's onItemCentered will be called
public static SnappyRecyclerView.Behavior[] values()
for (SnappyRecyclerView.Behavior c : SnappyRecyclerView.Behavior.values()) System.out.println(c);
public static SnappyRecyclerView.Behavior valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null