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

前端之家收集整理的这篇文章主要介绍了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?

不是我知道。

原文链接:https://www.f2er.com/xml/294175.html

猜你在找的XML相关文章