Saturday, 15 February 2014

image size that would fit width in android -



image size that would fit width in android -

i new android dev , keeps tripping dealing sizes , width. wondering image sizes need have image fit 1 below

wondering sizes image should in. hdpi mdpi xhdpi xxhdpi

looking pixel value

the improve reply on page :

http://developer.android.com/guide/practices/screens_support.html

you larn how back upwards multiple screen size on android.

to summarize, main rules next :

the baseline mdpi : it's resolution on should base of operations calculation baseline 160dpi hdpi = 1.5 * baseline xhdpi = 2 * baseline xxhdpi = 3 * baseline

so if image should have size of 150px @ 160dpi resolution, should create 225px image hdpi screens , 300px image xhdpi screens.

last advice : should seek create image when understand how multiple screens back upwards works. density more of import notion understand correctly. described here : terms , concepts

android

No comments:

Post a Comment