private float measureStringWidth ( String text ) { Paint mPaint = new Paint ( ) ; mPaint . setTextSize ( baselineDropDownViewFontSize * bootstrapSize ) ; return ( float ) ( DimenUtils . dpToPixels ( mPaint . measureText ( text ) ) ) ; }
Calculating string width