ImageView ScaleType - CenterInside
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 less than the corresponding dimension of the view (minus padding).
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents