我正在尝试使用字体资源目录并在 xml 文件中使用不同的字体,以便优先使用它们。我读了这篇文章,但无法解决问题。我正在使用支持库 v27,我知道它支持 res 中的字体而不是 asset 文件夹。每当我更改应用程序的语言时,它仅使用位于 font-fa-rIR 文件夹中的字体。我希望应用程序分别针对不同类型的语言使用不同的字体。我已附上应用程序 res 目录中的图像。我的问题出在哪里?我该如何解决?预先感谢。
偏好按钮.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/font_1" />
<TextView
android:id="@+id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/font_1" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我知道这个问题已经被问过很多次了,但是,自从 Google Play 上次更新以来,我们面临着许多变化。
最近,我与一个团队远程合作,开发了一个使用Google 地图的应用程序。当我构建应用程序的发行版本(使用特定的密钥库文件)并将其安装在真实设备上时,该应用程序可以正常运行。然而,当没有任何 Google Play 经验的 IT 成员将应用程序上传到 Google Play 时,Google 地图无法处理来自 Google Play 的 AAB 文件安装的应用程序。我已导出“pepk”文件来签署应用程序,但团队认为 Google Play 会自动签署应用程序,并且不需要 pepk 文件。问题是,我们应该如何解决这个问题呢?如果有任何解决方案,如果您帮助我,我将不胜感激。
我添加了来自 Google Play 的 APK 文件和 AAB 文件的发行版本的屏幕截图。
提前致谢。