mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
set the max allowed zoom to 5x
This commit is contained in:
@ -23,6 +23,7 @@ public class ViewPagerFragment extends Fragment {
|
|||||||
if (path != null) {
|
if (path != null) {
|
||||||
final SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) view.findViewById(R.id.photo);
|
final SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) view.findViewById(R.id.photo);
|
||||||
imageView.setImage(ImageSource.uri(path));
|
imageView.setImage(ImageSource.uri(path));
|
||||||
|
imageView.setMaxScale(5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
Reference in New Issue
Block a user