Android ImageView ScaleType - FitCenter


Example

Scale the image using CENTER.

Official Docs

This expands the image to try to match the container and it will align it to the center, it will fit to the smaller size.

Bigger height ( fit to width )

enter image description here

Same width and height.

enter image description here