public void drawView() { if (mLabels == null) { throw new IllegalArgumentException("labels must not be null."); } if (mCompletedPosition < 0 || mCompletedPosition > mLabels.length - 1) { throw new IndexOutOfBoundsException( String.format("Index : %s, Size : %s", mCompletedPosition, mLabels.length)); } mStepsViewIndicator.invalidate(); }