Skip to content

Commit

Permalink
Added back fit() combined with centerInside()
Browse files Browse the repository at this point in the history
Added fit() method back combined with centerInside(), because of case with huge images. When that case is present, photo is scalled down and then it will be center inside ImageView just like explained in previous commit.
  • Loading branch information
dawidfiruzek authored Nov 30, 2016
1 parent 447b250 commit 4a2725b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/android/PhotoActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private void loadImage() {
if( imageUrl.startsWith("http") ) {
Picasso.with(this)
.load(imageUrl)
.fit()
.centerInside()
.into(photo, new com.squareup.picasso.Callback() {
@Override
Expand Down

0 comments on commit 4a2725b

Please sign in to comment.