views:

30

answers:

2

same code anyDensity=false works fine for device with display resolution 320*480, but images are displayed pixelerate in device with display resolution 480*800.

A: 

If you have the any density=false attribute set and are building an app that will also run with android 1.5 your app will run in a compatibility mode. This will render your app like it is always displayed on a 320*480 screen and just scale down the resulting pixel measurements.

There should be no need to set any density to false in your manifest.

Janusz
How can I use images of size 320*480 on device with 480*800 resolution,
Vishakha Kinjawadekar
if the image is set to an imagview you can set the the width and height of the imageview as fill_parent and then set the scaleType of the imagview to fit_center. This however will make your images somewhat blurry.
Janusz
A: 

In my opinion the real resizing is only done for anydensity=true and dp/dip used as units.

joki