I have an ImageView that when I look at in the XML preview layout on Eclipse looks fine, but when I launch the app on my hardware device a big whitespace comes to surround it. This is what the actual image is, without the whitespace that is being added. Here is my XML file too. How do I get rid of this whitespace?
Share
Since your image shouldn’t be too large, try this:
This way, the image won’t attempt to scale and won’t create bounds outside the
ImageView‘s image.