Applying a system font to a TextView
suggest changeIn the following code you need to replace fontsname
by the name of the font you would like to use:
TextView lblexample = (TextView) findViewById(R.id.lblexample);
lblexample.setTypeface(Typeface.createFromFile("/system/fonts/" + "fontsname" + ".ttf"));
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents