How do I prepare images for all the Android resolutions? -


in ios preparing graphics simple. there either normal image (height x width) or retina image @2x (2 times height x 2 times width).

however, since i'm new android, see ton of drawable-* folders in eclipse * can "hdpi" or "ldpi" or "mdpi" or "xhdpi" or "xxhdpi". can , list me must satisfy each of display possibilities images right in each instance? i'm envisioning answer bullet list each "*" listed , sub-bullet list including things must done.

i'd enjoy answer start highest density , greatest dimension image , working down since i'll creating in photoshop , reducing quality master image. in advance!

i got off of site while back, still comes in handy

xlarge screens @ least 960dp x 720dp large screens @ least 640dp x 480dp normal screens @ least 470dp x 320dp small screens @ least 426dp x 320dp generalised dpi values screens:  ldpi resources low-density (ldpi) screens (~120dpi) mdpi resources medium-density (mdpi) screens (~160dpi). (this baseline density.) hdpi resources high-density (hdpi) screens (~240dpi). xhdpi resources high-density (xhdpi) screens (~320dpi). therefore generalised size of resources (assuming full screen):  ldpi vertical = 426 * 120 / 160 = 319.5px horizontal = 320 * 120 / 160 = 240px mdpi vertical = 470 * 160 / 160 = 470px horizontal = 320 * 160 / 160 = 320px hdpi vertical = 640 * 240 / 160 = 960px horizontal = 480 * 240 / 160 = 720px xhdpi vertical = 960 * 320 / 160 = 1920px horizontal = 720 * 320 / 160 = 1440px  px = dp*dpi/160 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -