I can't tell the difference between ImageView.ScaleType.CENTER_INSIDE
and ImageView.ScaleType.FIT_CENTER
.
CENTER_INSIDE
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 less than the corresponding dimension of the view (minus padding).
FIT_CENTER
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. The result is centered inside dst.
Can someone illuminate the difference between the two?