我是android的新手,请帮助我
在我的应用程序中,我想在图像上输入文本,并且我想动态更改文本字体,这将如何在 TextView 中执行,
请多多指教。
最佳答案
试试这个,
Typeface tf = Typeface.createFromAsset(getAssets(),
"fonts/Arial.otf");
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf)
关于android - 如何在 TextView 中动态更改字体样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7035884/