Android Studio 可绘制文件夹 [英] Android Studio drawable folders
问题描述
在 Android Studio 中,我不知道将要在应用程序中使用的图像放在哪里.drawable 文件夹没有分解为 drawable-hdpi、drawable-ldpi 等.我看到另一个问题问这个,答案是切换到项目视图而不是 Android 视图,但 drawable 也只是那里的一个文件夹.有 mipmap-hdpi、mipmap-ldpi 等,但人们说这仅适用于应用程序图标.我很困惑.
In Android Studio, I can't figure out where to put images to be used inside the app. The drawable folder isn't broken down into drawable-hdpi, drawable-ldpi, etc. I saw another question asking this and the answer was to switch to Project view instead of Android view but drawable is only one folder there too. There is mipmap-hdpi, mipmap-ldpi, etc, but people are saying that's only for app icons. I'm confused.
推荐答案
如果您没有看到您需要的 DPI 的可绘制文件夹,您可以自己创建它.它没有什么神奇之处.它只是一个需要具有正确名称的文件夹.
If you don't see a drawable folder for the DPI that you need, you can create it yourself. There's nothing magical about it; it's just a folder which needs to have the correct name.
这篇关于Android Studio 可绘制文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!