Android ImageView ScaleType and item height Android ImageView ScaleType and item height android android

Android ImageView ScaleType and item height


Use the scaletype which seems best to you ( I guess you like what you see with fitCenter). The additional thing that you must do is

android:adjustViewBounds="true"

in your ImageView.

or you could go with FitXY but sometimes the result is not exactly what you want.


use android:scaleType="fitXY"


Could you use FitXY?This would work if you knew the size of the area you were putting the image into.CentreInside may also work, I've used this to scale down images, but I think it depends if you've control of the size of the bounding layout element.