我已经通过这个帖子(及其他),以及通过的有关Android的支持不同的屏幕分辨率,但我无法找到一个明确的答案,一个(简单)的问题文档:
I've been through this post (and others) as well as through the documentation about supporting different screen resolutions in Android, but I couldn't find a clear answer to a (simple) question:
它是确定只使用RES /绘制的图像一个Android应用程序?
Is it ok to just use "res/drawable" for images in an android app?
背景:需要在该特定的应用程序,唯一的图像是该应用图标本身和要通知的图标,将不会有任何的图像中的任何布局所以在我的理解,如果没有。华电国际 - MDPI - 和LDPI-folders被发现,Android将使用RES /绘制作为后备由于不同屏幕分辨率的唯一的缺陷似乎是,Android将缩放图像。因为如果没有找到特别的一个特定的分辨率,这应该只是在像素提升,因为图像会模糊不清的问题。但是,如果我提供了所有的华电国际-images在RES /绘制(而不是3个不同的),不只是Android的下限这些图像,如果规模过大?如果这是真的,我可以节省一些APK-空间图像的只有三分之一。
Background: The only images that are needed in this specific app are the app icon itself and an icon for a notification, there won't be any images in any layout.So in my understanding, if no "hdpi"-, "mdpi"- and "ldpi"-folders are found, Android will use "res/drawable" as the fallback.As the only pitfall with different screen-resolution seems to be that Android will scale images for a specific resolution if no special one is found, this should only be a problem when UPscaling, because the image will get blurry. But if I provide all "hdpi"-images in "res/drawable" (instead of 3 different ones), won't Android just DOWNscale those images if the size is too big?If that's true, I could save some APK-space by just a third of the images.
跟进的问题:我读到的API级别3目录的名称为可绘-V3是必需的。这是真的还是绘制回退这个API级别也?
Follow-Up question: I read that for API-level 3 a dir by the name "drawable-v3" is required. Is that true or is "drawable" the fallback for this API-level also?
任何暗示是AP preciated。
Any hint is appreciated.
在可绘制文件夹中的图像被认为是在MDPI的分辨率,所以他们会得到放大/缩小,如果你不提供其他的。
The images in the drawables folder are assumed to be at mdpi resolution, so they will get scaled up/down if you don't provide the others.
放大图像将低分辨率,并期待模糊。按比例缩小的图像将像素丢失,并期待锯齿。
Scaled up images will be low-resolution and look fuzzy. Scaled down images will have pixels missing and look jaggy.
所以,你的应用程序将工作与只有一套默认的图像,但看起来可怕在许多设备上。我强烈建议你创建不同尺寸的图像,所以它看起来非常的所有设备 - 这是一个有点无聊,但并不难做到。
So your app will "work" with only one set of default images, but will look awful on many devices. I strongly advise that you create the images in different sizes, so it looks great on all devices - it's a bit boring, but not hard to do.
这将不用多久,我们有xhdpi设备,所以当你在它,你可能要创建这些呢。
It won't be long before we have xhdpi devices, so while you're at it you may want to create those too.
我假设您已经阅读这