private void onMainContentScrolled(int currentY,int deltaY){
  if (deltaY > mActionBarAutoHideSensivity) {
    deltaY=mActionBarAutoHideSensivity;
  }
 else   if (deltaY < -mActionBarAutoHideSensivity) {
    deltaY=-mActionBarAutoHideSensivity;
  }
  if (Math.signum(deltaY) * Math.signum(mActionBarAutoHideSignal) < 0) {
    mActionBarAutoHideSignal=deltaY;
  }
 else {
    mActionBarAutoHideSignal+=deltaY;
  }
  boolean shouldShow=currentY < mActionBarAutoHideMinY || (mActionBarAutoHideSignal <= -mActionBarAutoHideSensivity);
  autoShowOrHideActionBar(shouldShow);
}

private void onMainContentScrolled ( int currentY , int deltaY ) { if ( deltaY > mActionBarAutoHideSensivity ) { deltaY = mActionBarAutoHideSensivity ; } else if ( deltaY < - mActionBarAutoHideSensivity ) { deltaY = - mActionBarAutoHideSensivity ; } if ( Math . signum ( deltaY ) * Math . signum ( mActionBarAutoHideSignal ) < 0 ) { mActionBarAutoHideSignal = deltaY ; } else { mActionBarAutoHideSignal += deltaY ; } boolean shouldShow = currentY < mActionBarAutoHideMinY || ( mActionBarAutoHideSignal <= - mActionBarAutoHideSensivity ) ; autoShowOrHideActionBar ( shouldShow ) ; }
indicates that the main content has scrolled ( for the purposes of showing / hiding the action bar for the " action bar auto hide " effect ) . currenty and deltay may be exact ( if the underlying view supports it ) or may be approximate indications : deltay may be int_max to mean " scrolled forward indeterminately " and int_min to mean " scrolled backward indeterminately " . currenty may be 0 to mean " somewhere close to the start of the list " and int_max to mean " we don ' t know , but not at the start of the list "
