Interface OnMultiListener

  • All Implemented Interfaces:

    
    public interface OnMultiListener
    
                        

    多功能监听器 Created by scwang on 2017/5/26.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onHeaderMoving(RefreshHeader header, boolean isDragging, float percent, int offset, int headerHeight, int maxDragHeight) 手指拖动下拉(会连续多次调用,添加isDragging并取代之前的onPulling、onReleasing)
      abstract void onHeaderReleased(RefreshHeader header, int headerHeight, int maxDragHeight)
      abstract void onHeaderStartAnimator(RefreshHeader header, int headerHeight, int maxDragHeight)
      abstract void onHeaderFinish(RefreshHeader header, boolean success)
      abstract void onFooterMoving(RefreshFooter footer, boolean isDragging, float percent, int offset, int footerHeight, int maxDragHeight) 手指拖动上拉(会连续多次调用,添加isDragging并取代之前的onPulling、onReleasing)
      abstract void onFooterReleased(RefreshFooter footer, int footerHeight, int maxDragHeight)
      abstract void onFooterStartAnimator(RefreshFooter footer, int footerHeight, int maxDragHeight)
      abstract void onFooterFinish(RefreshFooter footer, boolean success)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 FooterHeight
        maxDragHeight - 最大拖动高度
      • 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 FooterHeight
        maxDragHeight - 最大拖动高度
      • 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)