I would like so specify both min. width/height and max. width/height for an ImageView. The image should be scaled to fit.
Doing this:
This used to be pretty much impossible with just XML, but now with ConstraintLayout, it's quite simple.
ConstraintLayout
You can use a scaleType of fitXY or centerCrop; others will not force the image to fit the ImageView.
scaleType
fitXY
centerCrop
ImageView