标签: java android textview custom-font
如何将自定义字体添加到Android应用程序的<TextView />或自定义视图中?
<TextView />
答案 0 :(得分:0)
试试这个,
TextView tx = (TextView)findViewById(R.id.hello); Typeface custom_font = Typeface.createFromAsset(getAssets(), "fonts/Erika Type.ttf"); tx.setTypeface(custom_font);