Android image size (portrait only) for mdpi, hdpi, xhdpi, xxhdpi -
i work on android project app force portrait only, have design pictures , cut image build ui. however, problem how should scale each picture?
what found far
xlarge (xhdpi): 640x960 large (hdpi): 480x800 medium (mdpi): 320x480 small (ldpi): 240x320
but found
hdpi = mdpi * 1.5 xhdpi = mdpi * 2 xxhdpi = mdpi *3
but mdpi * 1.5 should 480 * 720 ? how should resize picture each resolution? thanks
those resolutions guidelines not absolutes, , represent general amount of pixels in each dpi "bucket". i'd use scaling factors instead. whatever image's resolution, scale appropriately. instance, raw image files designed xxhdpi version. scale down 3, 2, , 1.5 lower dpi versions.
Comments
Post a Comment