I want to use fit() with a target. But it won't let me. What can i do else? I want to do something like this:
Picasso.with(this).load(selectedImage).fit().into(target);
If you are using fit() your target must be an ImageView.
From the javadoc:http://square.github.io/picasso/2.x/picasso/com/squareup/picasso/RequestCreator.html#fit--
public RequestCreator fit()
Attempt to resize the image to fit exactly into the target ImageView's bounds.
This will result in delayed execution of the request until the ImageView has been
laid out.
Note: This method works only when your target is an ImageView.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With