【发布时间】:2012-11-26 13:52:21
【问题描述】:
可能重复:
Android: Want to set custom fonts for whole application not runtime
我知道有以下方法可以做到这一点。但我想将字体应用于整个应用程序。那可能吗?
TextView txt = (TextView) findViewById(R.id.customfont);
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf");
txt.setTypeface(font);
【问题讨论】: