Image Compatibility In Iphone And Android
Solution 1:
dip
is not simply the same as 1.5 pixels. A dip
is a density independent pixel, and allows you to size items in a way so that they will look similar on displays with different pixel densities. When performing the layout Android scales the dip
value depending on the pixel density of the device.
However, dip
works best when sizing items which scale well, like the Android widgets. If you have an image you may want to always display it "actual size" so the image doesn't get scaled and become blurry - i.e. size it in pixels and not dip
. So what you may have to do is supply a number of versions of each image so that you have a version that looks good for the screen densities on all the devices you choose to support. This is turn may mean producing a number of different layouts, depending on how you use your images.
Post a Comment for "Image Compatibility In Iphone And Android"