Code example for Typeface

Methods: create

0
    @Override 
    protected void setupView(boolean isCenterView, int textSize) {
        setGravity(Gravity.CENTER);
        setTextColor(0xFF883333); 
        setTextSize(TypedValue.COMPLEX_UNIT_DIP, textSize);
        setTypeface(Typeface.SERIF);
 
        if (isCenterView) {
            setTypeface(Typeface.create(Typeface.SERIF, Typeface.BOLD));
            setBackgroundColor(0x55FFFFFF); 
            setShadowLayer(2.5f, 3, 3, 0xFF999999); 
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java