I have an image of size 1024x1024 and I want to have it a background as an ImageView
object. I've set the ImageView
height and width to be the size of the device and loaded the image - what happens is that the image shows the entire image squeezed to the given dimensions.
What I would like to see is not the entire image - I want it to scale to show it centered, and the parts of the image that don't fit the screen to not show. What my end result should be just setting the height and the width whatever is disposable will be overflowed and hidden.
How can I set an image not to stretch?