public static enum PullToRefreshBase.Mode extends java.lang.Enum<PullToRefreshBase.Mode>
| Enum Constant and Description |
|---|
BOTH
Allow the user to both Pull from the start, from the end to refresh.
|
DISABLED
Disable all Pull-to-Refresh gesture and Refreshing handling
|
MANUAL_REFRESH_ONLY
Disables Pull-to-Refresh gesture handling, but allows manually
setting the Refresh state via
setRefreshing(). |
PULL_FROM_END
Only allow the user to Pull from the end of the Refreshable View to
refresh.
|
PULL_FROM_START
Only allow the user to Pull from the start of the Refreshable View to
refresh.
|
| Modifier and Type | Field and Description |
|---|---|
static PullToRefreshBase.Mode |
PULL_DOWN_TO_REFRESH
Deprecated.
Use
PULL_FROM_START from now on. |
static PullToRefreshBase.Mode |
PULL_UP_TO_REFRESH
Deprecated.
Use
PULL_FROM_END from now on. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
showFooterLoadingLayout() |
boolean |
showHeaderLoadingLayout() |
static PullToRefreshBase.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PullToRefreshBase.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullToRefreshBase.Mode DISABLED
public static final PullToRefreshBase.Mode PULL_FROM_START
public static final PullToRefreshBase.Mode PULL_FROM_END
public static final PullToRefreshBase.Mode BOTH
public static final PullToRefreshBase.Mode MANUAL_REFRESH_ONLY
setRefreshing().public static PullToRefreshBase.Mode PULL_DOWN_TO_REFRESH
PULL_FROM_START from now on.public static PullToRefreshBase.Mode PULL_UP_TO_REFRESH
PULL_FROM_END from now on.public static PullToRefreshBase.Mode[] values()
for (PullToRefreshBase.Mode c : PullToRefreshBase.Mode.values()) System.out.println(c);
public static PullToRefreshBase.Mode 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 boolean showHeaderLoadingLayout()
public boolean showFooterLoadingLayout()