public int getAllContentWidth ( ) { float width = getAllContentWidthBase ( mTimeTextWidth ) ; if ( ! isConvertDaysToHours && isShowDay ) { if ( isDayLargeNinetyNine ) { Rect rect = new Rect ( ) ; String tempDay = String . valueOf ( mDay ) ; mTimeTextPaint . getTextBounds ( tempDay , 0 , tempDay . length ( ) , rect ) ; mDayTimeTextWidth = rect . width ( ) ; width += mDayTimeTextWidth ; } else { mDayTimeTextWidth = mTimeTextWidth ; width += mTimeTextWidth ; } } return ( int ) Math . ceil ( width ) ; }
get all view width