zoom in a bit less on double tap
This commit is contained in:
parent
1eb125e36d
commit
10e197af95
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue