# PhotoView

public class PhotoView

A zoomable ImageView. See PhotoViewAttacher for most of the details on how the zooming is accomplished

## Constructors

PhotoView
Link copied to clipboard
public void PhotoView(Context context)
public void PhotoView(Context context, AttributeSet attr)
public void PhotoView(Context context, AttributeSet attr, int defStyle)
public void PhotoView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

## Properties

attacher
Link copied to clipboard
public PhotoViewAttacher attacher

## Functions

getAttacher
Link copied to clipboard
public PhotoViewAttacher getAttacher()
Get the current PhotoViewAttacher for this view.
getDisplayMatrix
Link copied to clipboard
public void getDisplayMatrix(Matrix 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)
isZoomable
Link copied to clipboard
public boolean isZoomable()
isZoomEnabled
Link copied to clipboard
@Deprecated()
public boolean isZoomEnabled()
setAllowParentInterceptOnEdge
Link copied to clipboard
public void setAllowParentInterceptOnEdge(boolean allow)
setDisplayMatrix
Link copied to clipboard
public boolean setDisplayMatrix(Matrix finalRectangle)
setImageDrawable
Link copied to clipboard
public void setImageDrawable(Drawable drawable)
setImageResource
Link copied to clipboard
public void setImageResource(int resId)
setImageURI
Link copied to clipboard
public void setImageURI(Uri uri)
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 l)
setOnDoubleTapListener
Link copied to clipboard
public void setOnDoubleTapListener(OnDoubleTapListener onDoubleTapListener)
setOnLongClickListener
Link copied to clipboard
public void setOnLongClickListener(OnLongClickListener l)
setOnMatrixChangeListener
Link copied to clipboard
public void setOnMatrixChangeListener(OnMatrixChangedListener listener)
setOnOutsidePhotoTapListener
Link copied to clipboard
public void setOnOutsidePhotoTapListener(OnOutsidePhotoTapListener listener)
setOnPhotoTapListener
Link copied to clipboard
public void setOnPhotoTapListener(OnPhotoTapListener listener)
setOnScaleChangeListener
Link copied to clipboard
public void setOnScaleChangeListener(OnScaleChangedListener onScaleChangedListener)
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 rotationDegree)
setRotationTo
Link copied to clipboard
public void setRotationTo(float rotationDegree)
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)
setSuppMatrix
Link copied to clipboard
public boolean setSuppMatrix(Matrix matrix)
setZoomable
Link copied to clipboard
public void setZoomable(boolean zoomable)
setZoomTransitionDuration
Link copied to clipboard
public void setZoomTransitionDuration(int milliseconds)