【发布时间】:2024-01-15 20:22:01
【问题描述】:
我们在 IOS 中使用“apple-system-font”开发了一个应用程序,我们喜欢这种字体,因此我们希望对 android 应用程序中的所有 TextView 使用相同的字体。 那么有没有办法在android应用程序中使用'apple-system-font',如下所示:
<TextView
...
android:fontFamily="-apple-system-font" />
【问题讨论】:
-
您需要获取字体资源,其扩展名为 .ttf
标签: android android-studio textview font-family