Code example for Typeface

Methods: equals

0
    } 
 
    public void updatePadding() { 
        float paddingRatio = NORMAL_FONT_PADDING_RATIO;
        float bottomPaddingRatio = NORMAL_FONT_BOTTOM_PADDING_RATIO;
        if (getTypeface().equals(SAN_SERIF_BOLD)) {
            paddingRatio = BOLD_FONT_PADDING_RATIO;
            bottomPaddingRatio = BOLD_FONT_BOTTOM_PADDING_RATIO;
        } 
        // no need to scale by display density because getTextSize() already returns the font 
        // height in px 
        setPadding(0, (int) (-paddingRatio * getTextSize()), mPaddingRight,
                (int) (-bottomPaddingRatio * getTextSize()));
    } 
 
    public void setPaddingRight(int padding) {
        mPaddingRight = padding;
        updatePadding(); 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java