字体在android模拟器中未更改,但在Preview中可以正常工作

问题描述 投票:0回答:2

因此,每次我在模拟器中运行应用程序时,字体都无法使用。我有

android:fontFamily="@font/aladin"

对于特定的TextView,但是当我运行该应用程序时,它看起来不是那样。

enter image description here

这是它的外观,看起来像预览中的样子。但是,当我运行该应用程序时,它看起来如下所示。

enter image description here

android android-studio android-layout textview android-fonts
2个回答
0
投票

尝试重新启动模拟器,它将更新您的字体系列


0
投票

检查字体的更改方式,并尝试检查它是否与模拟器的SDK版本兼容

© www.soinside.com 2019 - 2024. All rights reserved.