Resize image to full width and fixed height with Picasso

You are looking for:

.fit().centerCrop()

What these mean:

  • fit – wait until the ImageView has been measured and resize the image to exactly match its size.
  • centerCrop – scale the image honoring the aspect ratio until it fills the size. Crop either the top and bottom or left and right so it matches the size exactly.

Leave a Comment