public class PullToRefreshListView extends PullToRefreshAdapterViewBase<ListView>
Modifier and Type | Class and Description |
---|---|
(package private) class |
PullToRefreshListView.InternalListView |
PullToRefreshBase.OnLastItemVisibleListener, PullToRefreshBase.OnRefreshListener, PullToRefreshBase.OnRefreshListener2, PullToRefreshBase.SmoothScrollRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
mAddedLvFooter |
private LoadingLayout |
mFooterLoadingView |
private LoadingLayout |
mHeaderLoadingView |
private FrameLayout |
mLvFooterLoadingFrame |
DEBUG, FRICTION, LOG_TAG, MANUAL_REFRESHING, MODE_BOTH, MODE_PULL_DOWN_TO_REFRESH, MODE_PULL_UP_TO_REFRESH, mRefreshableView, PULL_TO_REFRESH, REFRESHING, RELEASE_TO_REFRESH, STATE_CURRENT_MODE, STATE_DISABLE_SCROLLING_REFRESHING, STATE_MODE, STATE_SHOW_REFRESHING_VIEW, STATE_STATE, STATE_SUPER
Constructor and Description |
---|
PullToRefreshListView(Context context) |
PullToRefreshListView(Context context,
AttributeSet attrs) |
PullToRefreshListView(Context context,
int mode) |
Modifier and Type | Method and Description |
---|---|
protected ListView |
createRefreshableView(Context context,
AttributeSet attrs)
This is implemented by derived classes to return the created View.
|
ContextMenuInfo |
getContextMenuInfo() |
protected int |
getNumberInternalFooterViews()
Returns the number of Adapter View Footer Views.
|
protected int |
getNumberInternalHeaderViews()
Returns the number of Adapter View Header Views.
|
protected void |
resetHeader() |
void |
setPullLabel(java.lang.String pullLabel,
int mode)
Set Text to show when the Widget is being Pulled
|
protected void |
setRefreshingInternal(boolean doScroll) |
void |
setRefreshingLabel(java.lang.String refreshingLabel,
int mode)
Set Text to show when the Widget is refreshing
|
void |
setReleaseLabel(java.lang.String releaseLabel,
int mode)
Set Text to show when the Widget is being pulled, and will refresh when
released
|
addRefreshableView, getNumberInternalViews, isReadyForPullDown, isReadyForPullUp, onScroll, onScrollStateChanged, setEmptyView, setOnLastItemVisibleListener, setOnScrollListener
getAdapterView, getCurrentMode, getFooterLayout, getHeaderHeight, getHeaderLayout, getMode, getRefreshableView, getShowViewWhileRefreshing, getState, hasPullFromTop, isDisableScrollingWhileRefreshing, isPullToRefreshEnabled, isRefreshing, onInterceptTouchEvent, onRefreshComplete, onRestoreInstanceState, onSaveInstanceState, onTouchEvent, setDisableScrollingWhileRefreshing, setHeaderScroll, setLastUpdatedLabel, setLongClickable, setOnRefreshListener, setOnRefreshListener, setPullLabel, setPullToRefreshEnabled, setRefreshing, setRefreshing, setRefreshingLabel, setReleaseLabel, setShowViewWhileRefreshing, smoothScrollTo
private LoadingLayout mHeaderLoadingView
private LoadingLayout mFooterLoadingView
private FrameLayout mLvFooterLoadingFrame
private boolean mAddedLvFooter
public PullToRefreshListView(Context context)
public PullToRefreshListView(Context context, int mode)
public PullToRefreshListView(Context context, AttributeSet attrs)
public ContextMenuInfo getContextMenuInfo()
getContextMenuInfo
in class PullToRefreshAdapterViewBase<ListView>
public void setReleaseLabel(java.lang.String releaseLabel, int mode)
PullToRefreshBase
setReleaseLabel
in class PullToRefreshBase<ListView>
releaseLabel
- - String to displaymode
- - Either MODE_PULL_DOWN_TO_REFRESH
,
MODE_PULL_UP_TO_REFRESH
or MODE_BOTH
depending on which label you want to changepublic void setPullLabel(java.lang.String pullLabel, int mode)
PullToRefreshBase
setPullLabel
in class PullToRefreshBase<ListView>
pullLabel
- - String to displaymode
- - Either MODE_PULL_DOWN_TO_REFRESH
,
MODE_PULL_UP_TO_REFRESH
or MODE_BOTH
depending on which label you want to changepublic void setRefreshingLabel(java.lang.String refreshingLabel, int mode)
PullToRefreshBase
setRefreshingLabel
in class PullToRefreshBase<ListView>
refreshingLabel
- - String to displaymode
- - Either MODE_PULL_DOWN_TO_REFRESH
,
MODE_PULL_UP_TO_REFRESH
or MODE_BOTH
depending on which label you want to changeprotected final ListView createRefreshableView(Context context, AttributeSet attrs)
PullToRefreshBase
createRefreshableView
in class PullToRefreshBase<ListView>
context
- Context to create view withattrs
- AttributeSet from wrapped class. Means that anything you
include in the XML layout declaration will be routed to the
created Viewprotected void setRefreshingInternal(boolean doScroll)
setRefreshingInternal
in class PullToRefreshBase<ListView>
protected void resetHeader()
resetHeader
in class PullToRefreshBase<ListView>
protected int getNumberInternalHeaderViews()
PullToRefreshAdapterViewBase
getNumberInternalHeaderViews
in class PullToRefreshAdapterViewBase<ListView>
protected int getNumberInternalFooterViews()
PullToRefreshAdapterViewBase
getNumberInternalFooterViews
in class PullToRefreshAdapterViewBase<ListView>