Interface OnMultiListener
-
- All Implemented Interfaces:
public interface OnMultiListener多功能监听器 Created by scwang on 2017/5/26.
-
-
Method Summary
Modifier and Type Method Description abstract voidonHeaderMoving(RefreshHeader header, boolean isDragging, float percent, int offset, int headerHeight, int maxDragHeight)手指拖动下拉(会连续多次调用,添加isDragging并取代之前的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)手指拖动上拉(会连续多次调用,添加isDragging并取代之前的onPulling、onReleasing) abstract voidonFooterReleased(RefreshFooter footer, int footerHeight, int maxDragHeight)abstract voidonFooterStartAnimator(RefreshFooter footer, int footerHeight, int maxDragHeight)abstract voidonFooterFinish(RefreshFooter footer, boolean success)-
-
Method Detail
-
onHeaderMoving
abstract void onHeaderMoving(RefreshHeader header, boolean isDragging, float percent, int offset, int headerHeight, int maxDragHeight)
手指拖动下拉(会连续多次调用,添加isDragging并取代之前的onPulling、onReleasing)
- Parameters:
header- 头部isDragging- true 手指正在拖动 false 回弹动画percent- 下拉的百分比 值 = offset/footerHeight (0 - percent - (footerHeight+maxDragHeight) / footerHeight )offset- 下拉的像素偏移量 0 - offset - (footerHeight+maxDragHeight)headerHeight- 高度 HeaderHeight or FooterHeightmaxDragHeight- 最大拖动高度
-
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)
手指拖动上拉(会连续多次调用,添加isDragging并取代之前的onPulling、onReleasing)
- Parameters:
footer- 尾部isDragging- true 手指正在拖动 false 回弹动画percent- 下拉的百分比 值 = offset/footerHeight (0 - percent - (footerHeight+maxDragHeight) / footerHeight )offset- 下拉的像素偏移量 0 - offset - (footerHeight+maxDragHeight)footerHeight- 高度 HeaderHeight or FooterHeightmaxDragHeight- 最大拖动高度
-
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)
-
-
-
-