So I\'m loading images from a web service, but the size of the images are sometimes smaller or bigger than other images and the visualization looks silly when I put them in
Just delete the maxHeight and maxWidth attributes and enter your units in layout_width and layout_height appropriately. But do not use the px unit - use dp instead, because these are device-independent.