【问题标题】:Fonts doesn't change in the android emulator but works fine in the Preview字体在 android 模拟器中没有改变,但在预览中工作正常
【发布时间】:2020-03-25 19:17:49
【问题描述】:

所以每次我在模拟器中运行应用程序时,字体都不起作用。我有

android:fontFamily="@font/aladin"

对于特定的 TextView,但当我运行应用程序时它不会像那样出现。

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

【问题讨论】:

  • 您运行该应用的设备是什么安卓版本?

标签: android android-studio android-layout textview android-fonts


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    检查您如何更改字体,并尝试检查它是否适用于模拟器 sdk 版本

    【讨论】:

      猜你喜欢
      • 2018-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多