В чем разница между типами шкалы CENTER _INSIDE и FIT _CENTER?

Я не могу отличить ImageView.ScaleType.CENTER_INSIDEот 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.

Может ли кто-нибудь осветить разницу между ними?

135
задан Jonik 31 October 2017 в 14:07
поделиться