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

Android Studio create A folder in R.raw

问题描述:

I want to create folder in R.raw to classify my media source.

But when I try to read the folder in R, I can't found the folder.

 R.raw.folderName

How can I solve the problem?

网友答案:

You can not add folders to the raw folder or any of the folders inside the res folder.

Android supports only a linear list of files within the predefined folders under res. The asset folder though, can have an arbitrary hyarchie of folders because the asset folder is not considered as resources.

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