private void setRawDirection ( SwipyRefreshLayoutDirection direction ) { if ( mDirection == direction ) { return ; } mDirection = direction ; switch ( mDirection ) { case BOTTOM : mCurrentTargetOffsetTop = mOriginalOffsetTop = getMeasuredHeight ( ) ; break ; case TOP : default : mCurrentTargetOffsetTop = mOriginalOffsetTop = - mCircleView . getMeasuredHeight ( ) ; break ; } }
only TOP or Bottom