我在 res 文件夹中添加了几个子目录来为我在 android studio 中的 android 应用程序保存各种媒体资源。这些文件夹不会显示在 IDE 中,也不会作为使用 git 的项目的一部分提交。
文件夹已通过 New Directory
和 Finder 添加到 Finder 和 Android Studio 中的项目中。这些文件夹确实显示在 Finder 中。
如何将这些文件夹正确添加到我的项目中?
最佳答案
Android Assets /资源无法处理比标准密度相关文件夹更深的子目录。
您必须将它们全部保存在同一个文件夹中,并按命名约定组织它们(例如 screenname_type_function 又名 settings_btn_logout)。
很烦人,尤其是 iOS 处理得很好。
关于android - Android Studio 中的资源文件夹不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27415572/