0

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

1

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
  • 187,060
  • 113
  • 301
  • 369
  • How can I use images of size 320*480 on device with 480*800 resolution, – Vishakha Kinjawadekar Oct 22 '10 at 06:05
  • 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 Oct 22 '10 at 07:29
  • I am not using imageView I am just drawing it on canvas. Image gets fit into 320*480 resolution but in 480*800 resolution it left some space at the bottom of the screen. I am using image of size 320*480 and putting it in mdpi drawable folder. – Vishakha Kinjawadekar Nov 16 '10 at 04:54
0

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

berlindev
  • 1,753
  • 14
  • 22