xml – 在Android中使用自定义字体

我想为我的Android应用程序使用自定义字体,我正在创建。
我可以从Code单独更改每个对象的字体,但我有数百个。

所以,

>有没有办法从XML做到这一点? [设置自定义字体]
>有没有办法从一个地方的代码,以说整个应用程序和所有的组件应该使用自定义字体而不是默认的字体?

谢谢。
-Codevalley

Is there a way to do this from the
XML?

不,对不起。您只能通过XML指定内置字样。

Is there a way to do it from code in
one place,to say that the whole
application and all the components
should use the custom typeface instead
of the default one?

不是我知道。

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念