Stretch image in ImageView
That's what fitXY
is supposed to do. You can try with centerInside
if you don't want to crop your image, or centerCrop
if you want to fill all the space (and cropping your image).
Here is a nice list with examples to understand better all the scaleTypes
.
These two properties solved issue for me:
android:scaleType="fitXY"
android:adjustViewBounds="true"