OS not re-sizing images with the same scale

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

OS not re-sizing images with the same scale

Postby Kubic » Wed Aug 15, 2012 8:12 pm

I am troubled by how the Android OS is handling resizing on an app of mine. Basically I have a background image that is 480x800 (so 480px wide) and an image that goes at the bottom, also 480px wide.

On the Galaxy S (480x800 screen) everything looks fine, as shown below:

1.png (80.56 KiB) Viewed 152 times

On the Galaxy S3 (720x1280), however, the background is getting stretched to 720px wide but the image at the bottom only to 640px wide, as shown below:

2.png (79.66 KiB) Viewed 152 times

I tried to create a xhdpi folder with larger images, but same thing happens (background stretched to 720px, image only to 640px). I also tried to play with "ScaleType", but no luck so far.

Does anyone know why the OS would re-size the two images with a different scale, and how to fix it?
Once Poster
Once Poster
Posts: 1
Joined: Wed Aug 15, 2012 8:07 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 5 guests