1-android:scaleTaype="center"
2-android:scaleTaype="centerCrop"
What is the difference between 1 and 2?
CENTER :- Center the image in the view, but perform no scaling.

CENTER_CROP :- 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 larger than the corresponding dimension of the view (minus padding). The image is then centered in the view.

Refer to this official documentation for a overview of all the ScaleTypes and this site for a detailed explanation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With