Java Code Examples for uk.co.senab.photoview.PhotoViewAttacher#setMaxScale()
The following examples show how to use
uk.co.senab.photoview.PhotoViewAttacher#setMaxScale() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediaDetailFragment.java From BigApp_WordPress_Android with Apache License 2.0 | 5 votes |
@Override public void onLoadingFailed(String imageUri, View view, FailReason failReason) { mImageView.setScaleType(ImageView.ScaleType.CENTER); mProgress.setVisibility(View.GONE); PhotoViewAttacher photo = new PhotoViewAttacher(mImageView); photo.setMaxScale(8); photo.setOnPhotoTapListener(this); photo.setOnViewTapListener(this); }
Example 2
Source File: MediaDetailFragment.java From BigApp_WordPress_Android with Apache License 2.0 | 5 votes |
@Override public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { mImageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE); mProgress.setVisibility(View.GONE); PhotoViewAttacher photo = new PhotoViewAttacher(mImageView); photo.setMaxScale(10); photo.setOnPhotoTapListener(this); photo.setOnViewTapListener(this); }
Example 3
Source File: MediaPreviewCameraActivity.java From BigApp_WordPress_Android with Apache License 2.0 | 5 votes |
@Override public void onLoadingFailed(String imageUri, View view, FailReason failReason) { mImageView.setScaleType(ImageView.ScaleType.CENTER); mProgress.setVisibility(View.GONE); PhotoViewAttacher photo = new PhotoViewAttacher(mImageView); photo.setMaxScale(8); }
Example 4
Source File: MediaPreviewCameraActivity.java From BigApp_WordPress_Android with Apache License 2.0 | 5 votes |
@Override public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { mImageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE); mProgress.setVisibility(View.GONE); PhotoViewAttacher photo = new PhotoViewAttacher(mImageView); photo.setMaxScale(10); }