An ImageView can display an image differently based on the
scaleType provided. Above we discussed the
fitXY type along with
adjustViewBounds to match the aspect ratio of the drawable. The following is a list of all the most common types:
fitXY scale type allows you to set the exact size of the image in your layout. However, be mindful of potential distortions of the image due to scaling. If you’re creating a photo-viewing application, you will probably want to use the
fitCenter scale types.