Answers for "set font to textview android programmatically"

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 to textview android programmatically"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language