zoom in a bit less on double tap

This commit is contained in:
tibbi 2016-11-08 19:09:26 +01:00
parent 1eb125e36d
commit 10e197af95

View file

@ -39,6 +39,7 @@ public class PhotoFragment extends ViewPagerFragment implements View.OnClickList
Glide.with(getContext()).load(mMedium.getPath()).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).into(imageView); Glide.with(getContext()).load(mMedium.getPath()).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).into(imageView);
imageView.setOnClickListener(this); imageView.setOnClickListener(this);
} else { } else {
mSubsamplingView.setDoubleTapZoomScale(1.2f);
mSubsamplingView.setOrientation(SubsamplingScaleImageView.ORIENTATION_USE_EXIF); mSubsamplingView.setOrientation(SubsamplingScaleImageView.ORIENTATION_USE_EXIF);
mSubsamplingView.setImage(ImageSource.uri(mMedium.getPath())); mSubsamplingView.setImage(ImageSource.uri(mMedium.getPath()));
mSubsamplingView.setMaxScale(4f); mSubsamplingView.setMaxScale(4f);