PhotoViewAttacher

public class PhotoViewAttacher

The component of PhotoView which does the work allowing for zooming, scaling, panning, etc. It is made public in case you need to subclass something other than ImageView and still gain the functionality that PhotoView offers

Constructors

Link copied to clipboard
public void PhotoViewAttacher(ImageView imageView)

Functions

Link copied to clipboard
public void getDisplayMatrix(Matrix matrix)
Get the display matrix
Link copied to clipboard
public RectF getDisplayRect()
Link copied to clipboard
public Matrix getImageMatrix()
Link copied to clipboard
public float getMaximumScale()
Link copied to clipboard
public float getMediumScale()
Link copied to clipboard
public float getMinimumScale()
Link copied to clipboard
public float getScale()
Link copied to clipboard
public ScaleType getScaleType()
Link copied to clipboard
public void getSuppMatrix(Matrix matrix)
Get the current support matrix
Link copied to clipboard
public boolean isZoomable()
Link copied to clipboard
@Deprecated()
public boolean isZoomEnabled()
Link copied to clipboard
public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)
Link copied to clipboard
public boolean onTouch(View v, MotionEvent ev)
Link copied to clipboard
public void setAllowParentInterceptOnEdge(boolean allow)
Link copied to clipboard
public void setBaseRotation(float degrees)
Link copied to clipboard
public boolean setDisplayMatrix(Matrix finalMatrix)
Link copied to clipboard
public void setMaximumScale(float maximumScale)
Link copied to clipboard
public void setMediumScale(float mediumScale)
Link copied to clipboard
public void setMinimumScale(float minimumScale)
Link copied to clipboard
public void setOnClickListener(OnClickListener listener)
Link copied to clipboard
public void setOnDoubleTapListener(OnDoubleTapListener newOnDoubleTapListener)
Link copied to clipboard
public void setOnLongClickListener(OnLongClickListener listener)
Link copied to clipboard
public void setOnMatrixChangeListener(OnMatrixChangedListener listener)
Link copied to clipboard
public void setOnOutsidePhotoTapListener(OnOutsidePhotoTapListener mOutsidePhotoTapListener)
Link copied to clipboard
public void setOnPhotoTapListener(OnPhotoTapListener listener)
Link copied to clipboard
public void setOnScaleChangeListener(OnScaleChangedListener onScaleChangeListener)
Link copied to clipboard
public void setOnSingleFlingListener(OnSingleFlingListener onSingleFlingListener)
Link copied to clipboard
public void setOnViewDragListener(OnViewDragListener listener)
Link copied to clipboard
public void setOnViewTapListener(OnViewTapListener listener)
Link copied to clipboard
public void setRotationBy(float degrees)
Link copied to clipboard
public void setRotationTo(float degrees)
Link copied to clipboard
public void setScale(float scale)
public void setScale(float scale, boolean animate)
public void setScale(float scale, float focalX, float focalY, boolean animate)
Link copied to clipboard
public void setScaleLevels(float minimumScale, float mediumScale, float maximumScale)
Link copied to clipboard
public void setScaleType(ScaleType scaleType)
Link copied to clipboard
public void setZoomable(boolean zoomable)
Link copied to clipboard
public void setZoomInterpolator(Interpolator interpolator)
Set the zoom interpolator
Link copied to clipboard
public void setZoomTransitionDuration(int milliseconds)
Link copied to clipboard
public void update()