android adjustviewbounds code example
Example: why we use adjustViewBounds in android
The image is scaled uniformly and maintains the aspect ratio, in this case because the image will be equal or less than the ImageView it gets centered in it. Also the height is maintained since we are using adjustViewBounds