ImageView ScaleType - CenterCrop

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 larger than the corresponding dimension of the view (minus padding).

Official Docs

When the image matches the proportions of the container:

When the image is wider than the container, the scale is chosen so the height fills the view and the extra width is cropped, without changing its proportions.

Feedback about page:

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



Table Of Contents