Now I am developing an Android application using SDK 1.5 and a testing application on HTC Hero, its firmware is Android 1.5.
Let me come to the actual point: in the application I have an image to display the image (image resolution 320 * 480), now the image is viewing the image in full screen mode, but when I try to check it on HTC EVO 4G (with a resolution of 480 * 800), The image becomes stretched.
So what I like to do is display a resolution of 320 * 480 pixels on all mobile networks with a screen resolution? I mean to say if the mobile phone has a higher resolution (i.e. 480 * 800, 480 * 854 or more) than the image should be displayed in the "Center" part of the screen.
Thus, the image is displayed in the Center in all screens (without stretching or cutting), except for 320 * 480, what attributes should I set?
android android-imageview imageview
Paresh mayani
source share