I currently work on an android project that the app is force to portrait only, I already have some design pictures and I would like to cut the image to build the UI. However, the problem is how should I scale each picture?
What I found so far
xlarge (xhdpi): 640x960
large (hdpi): 480x800
medium (mdpi): 320x480
small (ldpi): 240x320
But I also found
hdpi = mdpi * 1.5
xhdpi = mdpi * 2
xxhdpi = mdpi *3
but actually the mdpi * 1.5 should be 480 * 720 ? How should I resize the picture for each resolution? thanks
Those resolutions are only guidelines not absolutes, and represent a general amount of pixels in each dpi "bucket". I'd primarily use the scaling factors instead. So whatever your image's resolution, scale appropriately. For instance, my raw image files are always designed as the xxhdpi version. Then I scale down by 3, 2, and 1.5 for the lower dpi versions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With