I need my application to support hdpi devices.
From what I’ve read, I need to use 72×72 size for icons, and 640×480 for images.
My questions are:
-
If my android device is mdpi for example, will is scale the images and the icons by itself ? I’ve read that it has a fair view after scaling.
-
Where should I place all my resources ? only in
drawbles\hdpifolder ? or only indrawblesfolder?
For #1, yes, it will scale them, but in my opinion you should always provide scaled resources of your own. This way you have control over how they look when downscaled (this makes more of a difference the smaller and more detailed they are). Also, 640×480 is by no means a standard size. It depends on what type of image you’re wanting, and how large it needs to be. What’s important is to understand the ratio between densities.
For #2, you should always have fallback graphics in the
res/drawablefolder, as Android will not upscale density specific graphics. (e.g. if you’re running on anxhdpiGalaxy Nexus, your application will crash)