当前位置: 动力学知识库 > 问答 > 编程问答 >

How can I add a sub folder to the raw folder in my Android app?

问题描述:

This question already has an answer here:

  • Can the Android Layout folder contain subfolders?

    13 answers

网友答案:

You can't.

The folders in /res/ have a predefined structure, and you can't add subfolders.

However, seeing as this is the raw folder, you may want to look into using the assets folder, in which sub folders are supported.

Keep in mind thought that by using assets you won't be able to use R.*.* references anymore. You will have to go through the AssetManager.

分享给朋友:
您可能感兴趣的文章:
随机阅读: