public class DefaultOnDoubleTapListener
extends java.lang.Object
implements android.view.GestureDetector.OnDoubleTapListener
To be used via
PhotoViewAttacher.setOnDoubleTapListener(android.view.GestureDetector.OnDoubleTapListener)| Constructor and Description |
|---|
DefaultOnDoubleTapListener(PhotoViewAttacher photoViewAttacher)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
onDoubleTap(android.view.MotionEvent ev) |
boolean |
onDoubleTapEvent(android.view.MotionEvent e) |
boolean |
onSingleTapConfirmed(android.view.MotionEvent e) |
void |
setPhotoViewAttacher(PhotoViewAttacher newPhotoViewAttacher)
Allows to change PhotoViewAttacher within range of single instance
|
public DefaultOnDoubleTapListener(PhotoViewAttacher photoViewAttacher)
photoViewAttacher - PhotoViewAttacher to bind topublic void setPhotoViewAttacher(PhotoViewAttacher newPhotoViewAttacher)
newPhotoViewAttacher - PhotoViewAttacher to bind topublic boolean onSingleTapConfirmed(android.view.MotionEvent e)
onSingleTapConfirmed in interface android.view.GestureDetector.OnDoubleTapListenerpublic boolean onDoubleTap(android.view.MotionEvent ev)
onDoubleTap in interface android.view.GestureDetector.OnDoubleTapListenerpublic boolean onDoubleTapEvent(android.view.MotionEvent e)
onDoubleTapEvent in interface android.view.GestureDetector.OnDoubleTapListener