private static float makeScrollPositionInRange0ToCount(final float currentScrollPosition,final int count){
  float absCurrentScrollPosition=currentScrollPosition;
  while (0 > absCurrentScrollPosition) {
    absCurrentScrollPosition+=count;
  }
  while (Math.round(absCurrentScrollPosition) >= count) {
    absCurrentScrollPosition-=count;
  }
  return absCurrentScrollPosition;
}

private static float makeScrollPositionInRange0ToCount ( final float currentScrollPosition , final int count ) { float absCurrentScrollPosition = currentScrollPosition ; while ( 0 > absCurrentScrollPosition ) { absCurrentScrollPosition += count ; } while ( Math . round ( absCurrentScrollPosition ) >= count ) { absCurrentScrollPosition -= count ; } return absCurrentScrollPosition ; }
helper method that make scroll in range of [ 0 , count ) . generally this method is needed only for cycle layout .
