Code example for StaticLayout

Methods: getHeightgetPaint

0
                j = (int)mLinkTitleLayout.getPaint().descent();
            else 
            if(mDeepLinkButton != null)
                j = 0;
            else 
                j = (int)mLinkUrlLayout.getPaint().descent();
            if(mLinkTitleLayout == null)
                k = 0;
            else 
                k = mLinkTitleLayout.getHeight();
            if(mDeepLinkButton == null)
                l = 0;
            else 
                l = mDeepLinkButton.getRect().height();
            if(mLinkUrlLayout == null)
                i1 = 0;
            else 
                i1 = mLinkUrlLayout.getHeight();
            j1 = j + (mAvailableContentHeight - k - l - i1) / 2;
        } else 
        { 
            j1 = 0;
        } 
        LinksRenderUtils.drawTitleDeepLinkAndUrl(canvas, i, j1, mLinkTitleLayout, mDeepLinkButton, mLinkUrlLayout, sLinkBitmap);
    } 
 
    public void onLayout(boolean flag, int i, int j, int k, int l) {
        super.onLayout(flag, i, j, k, l);
        int i1 = getMeasuredWidth();
Connect your IDE to all the code out there  Get Codota for Java