且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android Studio中可绘制的图像文件夹在哪里?

更新时间:2023-01-10 17:13:29

在我的项目中,只有以下文件夹:

While in my project has only these folders:

您可以在尚未创建文件夹时创建自己的文件夹.只需遵循命名约定即可.

You can make your own folder when its not yet created. just follow the naming convention.

我也尝试将Android更改为Project View,但仍然相同结构体.唯一的区别是在项目视图"中,我可以看到一些像这样在Android视图中隐藏的文件夹:

And I also tried changing the Android to Project View but still same structure. The only difference are in the Project View I can see some folders that are hidden in the Android View like these:

请保持原样.不要介意隐藏的文件/文件夹.

Just leave as it is. Nevermind the hidden files/folders.

我可以像这样将图像复制到可绘制文件夹中吗?

Can I just copy my images into the drawable folder like this?

这取决于您的应用程序.如果要支持不同的屏幕密度,则应遵循android resource文件夹.请参考此链接 http://developer.android.com/guide/topics/resources/providing-resources.html

It depends on your application. If you want to support different screen densities then you should follow the android resource folder. Refer to this link http://developer.android.com/guide/topics/resources/providing-resources.html

还是我需要为hdpi,ldpi和mdpi创建一个文件夹?

Or do I need to create a folder for hdpi, ldpi and mdpi?

是的,您可以创建它.请记住,请遵循文件夹的命名约定.

Yes you can create it. Remember just follow the naming convention of folders.