question: private void calcIntervalDis ( ) { if ( mMarkTextPaint == null ) { return ; } String defaultText = "888888" ; Rect temp = new Rect ( ) ; int max = 0 ; if ( mItems != null && mItems . size ( ) > 0 ) { for ( String i : mItems ) { mMarkTextPaint . getTextBounds ( i , 0 , i . length ( ) , temp ) ; if ( temp . width ( ) > max ) { max = temp . width ( ) ; } } } else { mMarkTextPaint . getTextBounds ( defaultText , 0 , defaultText . length ( ) , temp ) ; max = temp . width ( ) ; } if ( ! TextUtils . isEmpty ( mAdditionCenterMark ) ) { mMarkTextPaint . setTextSize ( mNormalTextSize ) ; mMarkTextPaint . getTextBounds ( mAdditionCenterMark , 0 , mAdditionCenterMark . length ( ) , temp ) ; mAdditionCenterMarkWidth = temp . width ( ) ; max += temp . width ( ) ; } mIntervalDis = max * mIntervalFactor ; }
target:  calculate interval distance between items