how to change font in android code example
Example: change font programmatically android
Typeface typeface = ResourcesCompat.getFont(context, R.font.antonine); //your font heva to be save in the res/fonts folder
setTypeface(typeface);
Typeface typeface = ResourcesCompat.getFont(context, R.font.antonine); //your font heva to be save in the res/fonts folder
setTypeface(typeface);