private float computeOverscrollPercent(){
  if (mOverScrollOffset >= 0) {
    return mOverScrollOffset / mMaxOverScroll;
  }
 else {
    return mOverScrollOffset / mMaxUnderScroll;
  }
}

private float computeOverscrollPercent ( ) { if ( mOverScrollOffset >= 0 ) { return mOverScrollOffset / mMaxOverScroll ; } else { return mOverScrollOffset / mMaxUnderScroll ; } }
determine the current amount of overscroll . if the value is 0 , there is no overscroll . if the value is < 0 , tabs are overscrolling towards the top or or left . if the value is > 0 , tabs are overscrolling towards the bottom or right .
