Code example for Paint

Methods: measureText

0
 
    public float computeTextWidth() { 
        Paint paint = computePaint();
        if (paint != null) {
            if (mString != null)
                return paint.measureText(mString);
            else 
                return 0; 
        } else { 
            return 0; 
        } 
    } 
 
    @Override 
    public boolean isCached() { 
        return true; 
    } 
 
    public float getBaselineHeight() { 
        return mBaselineHeight;