set the max allowed zoom to 5x
This commit is contained in:
parent
42ba6b0e1d
commit
46a8f67c02
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue