# 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

PhotoViewAttacher
Link copied to clipboard
public void PhotoViewAttacher(ImageView imageView)

## Functions

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