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 Detail

      • SimpleMultiListener

        SimpleMultiListener()
    • 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 - Header
        isDragging - true if finger is dragging, false if rebound animation
        percent - 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 FooterHeight
        maxDragHeight - Maximum drag height
      • 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 - Footer
        isDragging - true if finger is dragging, false if rebound animation
        percent - 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 FooterHeight
        maxDragHeight - Maximum drag height