RefreshLayout

public interface RefreshLayout

刷新布局 interface of the refresh layout Created by scwang on 2017/5/26.

Functions

Link copied to clipboard
public abstract boolean autoLoadMore()
Display load more animation and trigger load more event.
public abstract boolean autoLoadMore(int delayed)
public abstract boolean autoLoadMore(int delayed, int duration, float dragRate, boolean animationOnly)
Display load more animation and trigger load more event, Delayed start.
Link copied to clipboard
public abstract boolean autoLoadMoreAnimationOnly()
Display load more animation without triggering events.
Link copied to clipboard
public abstract boolean autoRefresh()
Display refresh animation and trigger refresh event.
public abstract boolean autoRefresh(int delayed)
Display refresh animation and trigger refresh event, Delayed start.
public abstract boolean autoRefresh(int delayed, int duration, float dragRate, boolean animationOnly)
Display refresh animation, Multifunction.
Link copied to clipboard
public abstract boolean autoRefreshAnimationOnly()
Display refresh animation without triggering events.
Link copied to clipboard
Close the Header or Footer, can't replace finishRefresh and finishLoadMore.
Link copied to clipboard
public abstract RefreshLayout finishLoadMore()
public abstract RefreshLayout finishLoadMore(boolean success)
public abstract RefreshLayout finishLoadMore(int delayed)
public abstract RefreshLayout finishLoadMore(int delayed, boolean success, boolean noMoreData)
finish load more.
Link copied to clipboard
finish load more with no more data.
Link copied to clipboard
public abstract RefreshLayout finishRefresh()
public abstract RefreshLayout finishRefresh(boolean success)
public abstract RefreshLayout finishRefresh(int delayed)
public abstract RefreshLayout finishRefresh(int delayed, boolean success, Boolean noMoreData)
finish refresh.
Link copied to clipboard
finish load more with no more data.
Link copied to clipboard
public abstract ViewGroup getLayout()
Get the ViewGroup of RefreshLayout 获取实体布局视图
Link copied to clipboard
public abstract RefreshFooter getRefreshFooter()
Get footer of RefreshLayout 获取当前 Footer
Link copied to clipboard
public abstract RefreshHeader getRefreshHeader()
Get header of RefreshLayout 获取当前 Header
Link copied to clipboard
public abstract RefreshState getState()
Get the current state of RefreshLayout 获取当前状态
Link copied to clipboard
public abstract boolean isLoading()
是否正在加载
Link copied to clipboard
public abstract boolean isRefreshing()
是否正在刷新
Link copied to clipboard
public abstract RefreshLayout resetNoMoreData()
Restore the original state after finishLoadMoreWithNoMoreData.
Link copied to clipboard
public abstract RefreshLayout setDisableContentWhenLoading(boolean disable)
Set whether to enable the action content view when loading.
Link copied to clipboard
public abstract RefreshLayout setDisableContentWhenRefresh(boolean disable)
Set whether to enable the action content view when refreshing.
Link copied to clipboard
public abstract RefreshLayout setDragRate(float rate)
Set the damping effect.
Link copied to clipboard
public abstract RefreshLayout setEnableAutoLoadMore(boolean enabled)
Sets whether to listen for the list to trigger a load event when scrolling to the bottom (default true).
Link copied to clipboard
public abstract RefreshLayout setEnableClipFooterWhenFixedBehind(boolean enabled)
Set whether to clip footer when the Footer is in the FixedBehind state.
Link copied to clipboard
public abstract RefreshLayout setEnableClipHeaderWhenFixedBehind(boolean enabled)
Set whether to clip header when the Header is in the FixedBehind state.
Link copied to clipboard
public abstract RefreshLayout setEnableFooterFollowWhenNoMoreData(boolean enabled)
Set whether or not Footer follows the content after there is no more data.
Link copied to clipboard
public abstract RefreshLayout setEnableFooterTranslationContent(boolean enabled)
Set whether to pull up the content while pulling up the header.
Link copied to clipboard
public abstract RefreshLayout setEnableHeaderTranslationContent(boolean enabled)
Set whether to pull down the content while pulling down the header.
Link copied to clipboard
public abstract RefreshLayout setEnableLoadMore(boolean enabled)
Set whether to enable pull-up loading more (enabled by default).
Link copied to clipboard
public abstract RefreshLayout setEnableLoadMoreWhenContentNotFull(boolean enabled)
Set whether to pull up and load more when the content is not full of one page.
Link copied to clipboard
public abstract RefreshLayout setEnableNestedScroll(boolean enabled)
Setting whether nesting scrolling is enabled (default off + smart on).
Link copied to clipboard
public abstract RefreshLayout setEnableOverScrollBounce(boolean enabled)
Set whether to enable cross-border rebound function.
Link copied to clipboard
public abstract RefreshLayout setEnableOverScrollDrag(boolean enabled)
Set whether to enable cross-border drag (imitation iphone effect).
Link copied to clipboard
public abstract RefreshLayout setEnablePureScrollMode(boolean enabled)
Set whether to enable the pure scroll mode.
Link copied to clipboard
public abstract RefreshLayout setEnableRefresh(boolean enabled)
Whether to enable pull-down refresh (enabled by default).
Link copied to clipboard
public abstract RefreshLayout setEnableScrollContentWhenLoaded(boolean enabled)
Set whether to scroll the content to display new data after loading more complete.
Link copied to clipboard
public abstract RefreshLayout setEnableScrollContentWhenRefreshed(boolean enabled)
Set whether to scroll the content to display new data after the refresh is complete.
Link copied to clipboard
public abstract RefreshLayout setFixedFooterViewId(int id)
设置固定在 Footer 上方的视图Id,可以在 Header 上下滚动的时候保持不跟谁滚动
Link copied to clipboard
public abstract RefreshLayout setFixedHeaderViewId(int id)
设置固定在 Header 下方的视图Id,可以在 Footer 上下滚动的时候保持不跟谁滚动
Link copied to clipboard
public abstract RefreshLayout setFooterHeight(float dp)
Set the Footer's height.
Link copied to clipboard
public abstract RefreshLayout setFooterHeightPx(int px)
设置 Footer 高度
Link copied to clipboard
public abstract RefreshLayout setFooterInsetStart(float dp)
Set the Footer's start offset.
Link copied to clipboard
public abstract RefreshLayout setFooterInsetStartPx(int px)
Set the Footer's start offset.
Link copied to clipboard
public abstract RefreshLayout setFooterMaxDragRate(float rate)
Set the ratio of the maximum height to drag footer.
Link copied to clipboard
public abstract RefreshLayout setFooterTranslationViewId(int id)
设置在 Footer 上下滚动时,需要跟随滚动的视图Id,默认整个内容视图
Link copied to clipboard
public abstract RefreshLayout setFooterTriggerRate(float rate)
Set the ratio at which the load more is triggered.
Link copied to clipboard
public abstract RefreshLayout setHeaderHeight(float dp)
Set the Header's height.
Link copied to clipboard
public abstract RefreshLayout setHeaderHeightPx(int px)
设置 Header 高度
Link copied to clipboard
public abstract RefreshLayout setHeaderInsetStart(float dp)
Set the Header's start offset(see srlHeaderInsetStart in the RepastPracticeActivity XML in demo-app for the practical application).
Link copied to clipboard
public abstract RefreshLayout setHeaderInsetStartPx(int px)
Set the Header's start offset(see srlHeaderInsetStart in the RepastPracticeActivity XML in demo-app for the practical application).
Link copied to clipboard
public abstract RefreshLayout setHeaderMaxDragRate(float rate)
Set the ratio of the maximum height to drag header.
Link copied to clipboard
public abstract RefreshLayout setHeaderTranslationViewId(int id)
设置在 Header 上下滚动时,需要跟随滚动的视图Id,默认整个内容视图
Link copied to clipboard
public abstract RefreshLayout setHeaderTriggerRate(float rate)
Set the ratio at which the refresh is triggered.
Link copied to clipboard
public abstract RefreshLayout setNoMoreData(boolean noMoreData)
Restore the original state after finishLoadMoreWithNoMoreData.
Link copied to clipboard
public abstract RefreshLayout setOnLoadMoreListener(OnLoadMoreListener listener)
Set load more listener separately.
Link copied to clipboard
public abstract RefreshLayout setOnMultiListener(OnMultiListener listener)
Set up a multi-function listener.
Link copied to clipboard
public abstract RefreshLayout setOnRefreshListener(OnRefreshListener listener)
Set refresh listener separately.
Link copied to clipboard
public abstract RefreshLayout setOnRefreshLoadMoreListener(OnRefreshLoadMoreListener listener)
Set refresh and load listeners at the same time.
Link copied to clipboard
public abstract RefreshLayout setPrimaryColors(Array<int> primaryColors)
Set theme color int (primaryColor and accentColor).
Link copied to clipboard
public abstract RefreshLayout setPrimaryColorsId(Array<int> primaryColorId)
Set theme color id (primaryColor and accentColor).
Link copied to clipboard
public abstract RefreshLayout setReboundDuration(int duration)
Set the duration of the rebound animation.
Link copied to clipboard
public abstract RefreshLayout setReboundInterpolator(Interpolator interpolator)
Set the rebound interpolator.
Link copied to clipboard
public abstract RefreshLayout setRefreshContent(View content)
Set the content of RefreshLayout(Suitable for non-XML pages, not suitable for replacing empty layouts)。 设置指定的 Content(适用于非XML页面,不适合用替换空布局)
public abstract RefreshLayout setRefreshContent(View content, int width, int height)
Set the content of RefreshLayout(Suitable for non-XML pages, not suitable for replacing empty layouts).
Link copied to clipboard
public abstract RefreshLayout setRefreshFooter(RefreshFooter footer)
public abstract RefreshLayout setRefreshFooter(RefreshFooter footer, int width, int height)
Set the footer of RefreshLayout.
Link copied to clipboard
public abstract RefreshLayout setRefreshHeader(RefreshHeader header)
public abstract RefreshLayout setRefreshHeader(RefreshHeader header, int width, int height)
Set the header of RefreshLayout.
Link copied to clipboard
public abstract RefreshLayout setScrollBoundaryDecider(ScrollBoundaryDecider boundary)
Set the scroll boundary Decider, Can customize when you can refresh.