Answers for "set font programmatically android"

1

How to chage font progrmatically

TextView tv = (TextView) findViewById(R.id.appname);
Typeface face = Typeface.createFromAsset(getAssets(),
            "fonts/epimodem.ttf");
tv.setTypeface(face);
Posted by: Guest on March-29-2020
0

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);
Posted by: Guest on April-22-2021

Code answers related to "set font programmatically android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language