@Override public void onNestedPreScroll(View target,int dx,int dy,int[] consumed){
  if ((!mPullRefreshEnable && !mPullLoadEnable)) {
    return;
  }
  if (Math.abs(dy) > 200) {
    return;
  }
  if (!isConfirm) {
    if (dy < 0 && !canChildScrollUp()) {
      mCurrentAction=PULL_REFRESH;
      isConfirm=true;
    }
 else     if (dy > 0 && !canChildScrollDown()) {
      mCurrentAction=LOAD_MORE;
      isConfirm=true;
    }
  }
  if (moveSpinner(-dy)) {
    consumed[1]+=dy;
  }
}

@ Override public void onNestedPreScroll ( View target , int dx , int dy , int [ ] consumed ) { if ( ( ! mPullRefreshEnable && ! mPullLoadEnable ) ) { return ; } if ( Math . abs ( dy ) > 200 ) { return ; } if ( ! isConfirm ) { if ( dy < 0 && ! canChildScrollUp ( ) ) { mCurrentAction = PULL_REFRESH ; isConfirm = true ; } else if ( dy > 0 && ! canChildScrollDown ( ) ) { mCurrentAction = LOAD_MORE ; isConfirm = true ; } } if ( moveSpinner ( - dy ) ) { consumed [ 1 ] += dy ; } }
with child view to processing move events
