@Px private int calculateIndicatorDotStart(){
  final int dotCount=indicatorDots.size();
  final float halfDotCount=dotCount / 2f;
  final int dotWidth=2 * dotRadius;
  final float totalDotWidth=dotWidth * halfDotCount;
  final float halfDotPaddingCount=Math.max(halfDotCount - 0.5f,0);
  final float totalDotPaddingWidth=dotPadding * halfDotPaddingCount;
  int startPosition=getWidth() / 2;
  startPosition-=totalDotWidth + totalDotPaddingWidth;
  return startPosition;
}

@ Px private int calculateIndicatorDotStart ( ) { final int dotCount = indicatorDots . size ( ) ; final float halfDotCount = dotCount / 2f ; final int dotWidth = 2 * dotRadius ; final float totalDotWidth = dotWidth * halfDotCount ; final float halfDotPaddingCount = Math . max ( halfDotCount - 0.5f , 0 ) ; final float totalDotPaddingWidth = dotPadding * halfDotPaddingCount ; int startPosition = getWidth ( ) / 2 ; startPosition -= totalDotWidth + totalDotPaddingWidth ; return startPosition ; }
calculate the starting horizontal position for the line of indicator dots . assumes dots are centered horizontally .
