Interface OnMultiListener
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.widget.pullrefresh.listener.OnLoadMoreListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnRefreshListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnRefreshLoadMoreListener,ai.nexconn.chatui.widget.pullrefresh.listener.OnStateChangedListener
public interface OnMultiListener implements OnRefreshLoadMoreListener, OnStateChangedListener
Multi-purpose listener.
-
-
Method Summary
Modifier and Type Method Description abstract 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). abstract voidonHeaderReleased(RefreshHeader header, int headerHeight, int maxDragHeight)abstract voidonHeaderStartAnimator(RefreshHeader header, int headerHeight, int maxDragHeight)abstract voidonHeaderFinish(RefreshHeader header, boolean success)abstract 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). abstract voidonFooterReleased(RefreshFooter footer, int footerHeight, int maxDragHeight)abstract voidonFooterStartAnimator(RefreshFooter footer, int footerHeight, int maxDragHeight)abstract voidonFooterFinish(RefreshFooter footer, boolean success)-
Methods inherited from class ai.nexconn.chatui.widget.pullrefresh.listener.OnStateChangedListener
onStateChanged -
Methods inherited from class ai.nexconn.chatui.widget.pullrefresh.listener.OnRefreshListener
onRefresh -
Methods inherited from class ai.nexconn.chatui.widget.pullrefresh.listener.OnLoadMoreListener
onLoadMore -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onHeaderMoving
abstract 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
abstract void onHeaderReleased(RefreshHeader header, int headerHeight, int maxDragHeight)
-
onHeaderStartAnimator
abstract void onHeaderStartAnimator(RefreshHeader header, int headerHeight, int maxDragHeight)
-
onHeaderFinish
abstract void onHeaderFinish(RefreshHeader header, boolean success)
-
onFooterMoving
abstract 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
abstract void onFooterReleased(RefreshFooter footer, int footerHeight, int maxDragHeight)
-
onFooterStartAnimator
abstract void onFooterStartAnimator(RefreshFooter footer, int footerHeight, int maxDragHeight)
-
onFooterFinish
abstract void onFooterFinish(RefreshFooter footer, boolean success)
-
-
-
-