Code example for Paint

Methods: getTextSize

        // Get the desired height of the icon menu view (last row of items does 
        // not have a divider below) 
        Rect padding = new Rect();
        final int desiredHeight = ((int)mPaint.getTextSize()) + mVerticalPadding
                + + padding.bottom;
        // Maximum possible width and desired height 
                resolveSize(desiredHeight, heightMeasureSpec));
     * If the canvas is null, then only touch calculations are performed to pick the target 
     * candidate. 
    protected void onDraw(Canvas canvas) {
        if (canvas != null) {