Update : I solved this issue by using the method described in this answer
I\'m a bit stuck with this issue, which I think should be pretty simple.>
You're probably looking for android:adjustViewBounds="true" in xml or imageView.setAdjustViewBounds(true) in Java.
android:adjustViewBounds="true"
imageView.setAdjustViewBounds(true)