ImageView ScaleType - CenterCrop
suggest changeScale 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).
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents