Android的 - 字体中的应用 [英] Android - Fonts in Application

查看:95
本文介绍了Android的 - 字体中的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经添加在/资产目录外的字体,以及人工手动操作setFacetype(字体)。
是不是有设置整个应用程序使用特定的字体,如果你已经添加它外部的一般方法?或者你有使用Android的选择字体,以实现这一目标?

I have added an external font in /assets directory, and manually doing setFacetype(font). Isn't there a general way to set the whole application to use a specific font if you have added it external? Or do you have to use Android's selected fonts in order to achieve this?

推荐答案

您的不能通过对整个应用程序的一般方式使用您的自定义字体

You cannot use your custom fonts through to whole application in a general way.

您的不能设置自定义字体通过XML文件。

You cannot set your custom fonts through xml files.

您必须使用字样函数在code到您的应用程序中使用自定义的字体。

You have to use the Typeface functions in your code to use your custom fonts within your application.

这篇关于Android的 - 字体中的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆