public static enum OnScrollListener.ScrollState extends java.lang.Enum<OnScrollListener.ScrollState>
| Enum Constant and Description |
|---|
FLING
The user had previously been scrolling using touch and had performed a fling.
|
IDLE
The view is not scrolling.
|
TOUCH_SCROLL
The user is scrolling using touch, and their finger is still on the screen
|
| Modifier and Type | Method and Description |
|---|---|
static OnScrollListener.ScrollState |
fromValue(int value)
Creates a
OnScrollListener.ScrollState from the AbsListView scroll state value. |
int |
getValue()
Gives the value known by the
AbsListView.OnScrollListener defined in the
AbsListView. |
static OnScrollListener.ScrollState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OnScrollListener.ScrollState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnScrollListener.ScrollState FLING
public static final OnScrollListener.ScrollState IDLE
public static final OnScrollListener.ScrollState TOUCH_SCROLL
public static OnScrollListener.ScrollState[] values()
for (OnScrollListener.ScrollState c : OnScrollListener.ScrollState.values()) System.out.println(c);
public static OnScrollListener.ScrollState 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 nullpublic int getValue()
AbsListView.OnScrollListener defined in the
AbsListView.AbsListView scroll state value.public static OnScrollListener.ScrollState fromValue(int value)
OnScrollListener.ScrollState from the AbsListView scroll state value.value - The AbsListView scroll state value.OnScrollListener.ScrollState or null if the value was invalid.