I've come across this simple problem with the Picasso library. I haven't find any way to put an image into ImageView center it like android:ScaleType="center" does without cropping. Do you have any ideas about how to solve this ? My problem is that I don't know at the runtime the height and width of the BitMap I download so I can't use resize() properly.
Picasso center image without resizing into ImageView
4.4k Views Asked by Lukas Anda At
3
If your
ImageViewis fixed one dimension and flexible another dimension (ex.android:width="match_parent",android:height="wrap_content"), you should be able to useandroid:adjustViewBounds="true"to get theImageViewto resize to display your image without cropping.