在 android 中创建区域特定目录的 -b+ 符号是什么?

What is the -b+ sign in creating locale specific directories in android?

根据 android 文档,

要添加对更多语言环境的支持,请在 res/ 中创建其他目录。每个目录的名称应遵循以下格式:

<resource type>-b+<language code>[+<country code>]

例如

MyProject/
    res/
       values/
           strings.xml
       values-b+es/
           strings.xml
       mipmap/
           country_flag.png
       mipmap-b+es+ES/
           country_flag.png

谁能说说为什么符号是这样的-b+? 仅用于教育目的。

Link:
https://developer.android.com/training/basics/supporting-devices/languages.html#CreateDirs

它是从Java SE 7 添加的 BCP-47 标签。它是一个 IETF 标准,用于在内部理解 Locale 并支持 locale 的扩展。这就是 android 使用 values-b+

的原因

更多信息: https://tools.ietf.org/html/bcp47

https://docs.oracle.com/javase/tutorial/i18n/locale/extensions.html