public class PullToRefreshWebView extends PullToRefreshBase<WebView>
PullToRefreshBase.OnLastItemVisibleListener, PullToRefreshBase.OnRefreshListener, PullToRefreshBase.OnRefreshListener2, PullToRefreshBase.SmoothScrollRunnable
Modifier and Type | Field and Description |
---|---|
private PullToRefreshBase.OnRefreshListener |
defaultOnRefreshListener |
private WebChromeClient |
defaultWebChromeClient |
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 |
---|
PullToRefreshWebView(Context context) |
PullToRefreshWebView(Context context,
AttributeSet attrs) |
PullToRefreshWebView(Context context,
int mode) |
Modifier and Type | Method and Description |
---|---|
protected WebView |
createRefreshableView(Context context,
AttributeSet attrs)
This is implemented by derived classes to return the created View.
|
protected boolean |
isReadyForPullDown()
Implemented by derived class to return whether the View is in a mState
where the user can Pull to Refresh by scrolling down.
|
protected boolean |
isReadyForPullUp()
Implemented by derived class to return whether the View is in a mState
where the user can Pull to Refresh by scrolling up.
|
addRefreshableView, getAdapterView, getCurrentMode, getFooterLayout, getHeaderHeight, getHeaderLayout, getMode, getRefreshableView, getShowViewWhileRefreshing, getState, hasPullFromTop, isDisableScrollingWhileRefreshing, isPullToRefreshEnabled, isRefreshing, onInterceptTouchEvent, onRefreshComplete, onRestoreInstanceState, onSaveInstanceState, onTouchEvent, resetHeader, setDisableScrollingWhileRefreshing, setHeaderScroll, setLastUpdatedLabel, setLongClickable, setOnRefreshListener, setOnRefreshListener, setPullLabel, setPullLabel, setPullToRefreshEnabled, setRefreshing, setRefreshing, setRefreshingInternal, setRefreshingLabel, setRefreshingLabel, setReleaseLabel, setReleaseLabel, setShowViewWhileRefreshing, smoothScrollTo
private final PullToRefreshBase.OnRefreshListener defaultOnRefreshListener
private final WebChromeClient defaultWebChromeClient
public PullToRefreshWebView(Context context)
public PullToRefreshWebView(Context context, int mode)
public PullToRefreshWebView(Context context, AttributeSet attrs)
protected WebView createRefreshableView(Context context, AttributeSet attrs)
PullToRefreshBase
createRefreshableView
in class PullToRefreshBase<WebView>
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 boolean isReadyForPullDown()
PullToRefreshBase
isReadyForPullDown
in class PullToRefreshBase<WebView>
protected boolean isReadyForPullUp()
PullToRefreshBase
isReadyForPullUp
in class PullToRefreshBase<WebView>