Class SimpleMultiListener
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.widget.pullrefresh.listener.OnLoadMoreListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnMultiListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnRefreshListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnRefreshLoadMoreListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnStateChangedListener
public class SimpleMultiListener implements OnMultiListener
Multi-purpose listener.
-
-
Constructor Summary
Constructors Constructor Description SimpleMultiListener()
-
Method Summary
Modifier and Type Method Description voidonHeaderMoving(RefreshHeader header, boolean isDragging, float percent, int offset, int headerHeight, int maxDragHeight)Called during finger pull-down drag (called continuously; isDragging replaces the old onPulling/onReleasing). voidonHeaderReleased(RefreshHeader header, int headerHeight, int maxDragHeight)voidonHeaderStartAnimator(RefreshHeader header, int footerHeight, int maxDragHeight)voidonHeaderFinish(RefreshHeader header, boolean success)voidonFooterMoving(RefreshFooter footer, boolean isDragging, float percent, int offset, int footerHeight, int maxDragHeight)Called during finger pull-up drag (called continuously; isDragging replaces the old onPulling/onReleasing). voidonFooterReleased(RefreshFooter footer, int footerHeight, int maxDragHeight)voidonFooterStartAnimator(RefreshFooter footer, int headerHeight, int maxDragHeight)voidonFooterFinish(RefreshFooter footer, boolean success)voidonRefresh(@NonNull() RefreshLayout refreshLayout)voidonLoadMore(@NonNull() RefreshLayout refreshLayout)voidonStateChanged(@NonNull() RefreshLayout refreshLayout, @NonNull() RefreshState oldState, @NonNull() RefreshState newState)[Framework internal only] State change event RefreshState. -
-
Method Detail
-
onHeaderMoving
void onHeaderMoving(RefreshHeader header, boolean isDragging, float percent, int offset, int headerHeight, int maxDragHeight)
Called during finger pull-down drag (called continuously; isDragging replaces the old onPulling/onReleasing).
- Parameters:
header- HeaderisDragging- true if finger is dragging, false if rebound animationpercent- Pull percentage, value = offset/footerHeight (range: 0 to (footerHeight+maxDragHeight)/footerHeight)offset- Pixel offset of pull, range: 0 to (footerHeight+maxDragHeight)headerHeight- Height: HeaderHeight or FooterHeightmaxDragHeight- Maximum drag height
-
onHeaderReleased
void onHeaderReleased(RefreshHeader header, int headerHeight, int maxDragHeight)
-
onHeaderStartAnimator
void onHeaderStartAnimator(RefreshHeader header, int footerHeight, int maxDragHeight)
-
onHeaderFinish
void onHeaderFinish(RefreshHeader header, boolean success)
-
onFooterMoving
void onFooterMoving(RefreshFooter footer, boolean isDragging, float percent, int offset, int footerHeight, int maxDragHeight)
Called during finger pull-up drag (called continuously; isDragging replaces the old onPulling/onReleasing).
- Parameters:
footer- FooterisDragging- true if finger is dragging, false if rebound animationpercent- Pull percentage, value = offset/footerHeight (range: 0 to (footerHeight+maxDragHeight)/footerHeight)offset- Pixel offset of pull, range: 0 to (footerHeight+maxDragHeight)footerHeight- Height: HeaderHeight or FooterHeightmaxDragHeight- Maximum drag height
-
onFooterReleased
void onFooterReleased(RefreshFooter footer, int footerHeight, int maxDragHeight)
-
onFooterStartAnimator
void onFooterStartAnimator(RefreshFooter footer, int headerHeight, int maxDragHeight)
-
onFooterFinish
void onFooterFinish(RefreshFooter footer, boolean success)
-
onRefresh
void onRefresh(@NonNull() RefreshLayout refreshLayout)
-
onLoadMore
void onLoadMore(@NonNull() RefreshLayout refreshLayout)
-
onStateChanged
void onStateChanged(@NonNull() RefreshLayout refreshLayout, @NonNull() RefreshState oldState, @NonNull() RefreshState newState)
[Framework internal only] State change event RefreshState.
- Parameters:
refreshLayout- RefreshLayoutoldState- State before changenewState- State after change
-
-
-
-