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 resize it to the smaller size, if both container sizes are bigger it will act the same as center.

But if one of the sizes are small, it will fit to that size.

Feedback about page:

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



Table Of Contents