How can I set the width and height of an ImageView before loading the image with, for example, setBitmapImage()?
The point is that I have a GridView with variable number of columns and I do need to stretch the width of the images by preserving the aspect ratio, and, since I load the images in an asynchronous manner, I do want to prepare the layouts before loading the images, that is, width and height of the ImageView.