public class Calligrapher
extends java.lang.Object
| Constructor and Description |
|---|
Calligrapher(android.content.Context context)
Constructor for creating calligrapher object
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFont(android.app.Activity activity,
java.lang.String fontPath,
boolean includeActionbar)
Set font to every view that supports typeface of the given activity layout
|
void |
setFont(android.view.View view,
java.lang.String fontPath)
Set font to target view and it's child (if any)
|
public Calligrapher(android.content.Context context)
context - Android Contextpublic void setFont(android.app.Activity activity,
java.lang.String fontPath,
boolean includeActionbar)
activity - Target activityfontPath - Font file source path (Font must be in the assets directory of the application)includeActionbar - Flag to determine if the Actionbar title font need to be changed or notpublic void setFont(android.view.View view,
java.lang.String fontPath)
view - Target viewfontPath - Font file source path (Font must be in the assets directory of the application)