onHeaderMoving

public 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 FooterHeight

maxDragHeight

最大拖动高度