Skip to content Skip to sidebar Skip to footer

What Resolution Tu Use For My Images

I'm creating an android application that will contain many imageButtons. I want to create images by photoshop, what resolution should I use so images will be displayed correctly in

Solution 1:

DPI or PPI it doesn't matter.. Basically u should care about it just if u want to print something. If u prepare graphic elements for Android App u should care about dimensions of PNGs in pixels(px). If u develop for more then one device, which is probably the case u should prepare different size images for different screens. Google generalized screens densities to ldpi, mdpi, hdpi, xhdpi. Medium density (mdpi ~160dpi) is used as base density and others are derived from it as follows:

ldpi = 0.75 x mdpi
hdpi = 1.5 x mdpi
xhdpi = 2.0 x mdpi

this basically means if u had image of 100x100px and u want that one to look nice on hdpi screen u should provide same image in 150x150px abd save in drawable-hdpi directory. Android will do the rest and make both images look same on appropriate screen.

So before start with graphics design:

On the other side, Google generalized screen sizes as well so we have small, normal, large, xlarge.. For support different sizes u should define different layouts and how elements will be positioned in them.

To read and learn more about whole thing, try to check this link of official Android documentation.

Hope u will find answer useful ;) Enjoy Android wonderland.. ;) Cheers

Solution 2:

Resolution doesn't matter as it's a purely digital medium. If you make something 300px wide, regardless of the resolution, it'll be 300 pixels. The device has a global DPI setting that you can query the system for, but it just uses that to scale images for the display. The DPI settings of your images are not taken into account.

Post a Comment for "What Resolution Tu Use For My Images"