I using a GridView to display a feed. If the entry has a background image for it, the image gets loaded from the device or the server. My problem is that when an image is loaded, the gridview’s item expands to accomodate the image. I want the image to scale down to fit the box.
I have tried using an ImageView with various scaletypes and using the view’s background. Nothing seems to work. Any ideas?
The answer I found was that when I was inflating the XML is I was using:
instead of
If you use the first, the inflated view and the container don’t communicate, so the “layout_XXX” attributes for the view are ignored.