ImageView ScaleType - CenterInside

suggest change

Scale the image uniformly (maintain the image’s aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).

Official Docs

It will center the image and, if the image is larger than the view, scale it down to fit. If both sides of the container are larger than the image, it behaves the same as center.

If either side of the container is smaller than the image, the image is scaled down to fit that side.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents