Java Code Examples for android.view.GestureDetector#OnDoubleTapListener

The following examples show how to use android.view.GestureDetector#OnDoubleTapListener . 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: PhotoViewAttacher.java    From Android with MIT License 5 votes vote down vote up
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null) {
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    } else {
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
    }
}
 
Example 2
Source File: PhotoViewAttacher.java    From MoeGallery with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null) {
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    } else {
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
    }
}
 
Example 3
Source File: PhotoViewAttacher.java    From imsdk-android with MIT License 5 votes vote down vote up
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null) {
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    } else {
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
    }
}
 
Example 4
Source File: Attacher.java    From PicKing with Apache License 2.0 5 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null) {
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    } else {
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
    }
}
 
Example 5
Source File: PhotoViewAttacher.java    From light-novel-library_Wenku8_Android with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null)
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    else
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
}
 
Example 6
Source File: PhotoViewAttacher.java    From giffun with Apache License 2.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
}
 
Example 7
Source File: TouchImageView.java    From Ecommerce-Morningmist-Android with Creative Commons Zero v1.0 Universal 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
    doubleTapListener = l;
}
 
Example 8
Source File: TouchImageView.java    From AndroidAnimationExercise with Apache License 2.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
    doubleTapListener = l;
}
 
Example 9
Source File: PhotoView.java    From light-novel-library_Wenku8_Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    mAttacher.setOnDoubleTapListener(newOnDoubleTapListener);
}
 
Example 10
Source File: TouchImageView.java    From PhotoPicker with Apache License 2.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
  doubleTapListener = l;
}
 
Example 11
Source File: TouchImageView.java    From GankApp with GNU General Public License v2.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
    doubleTapListener = l;
}
 
Example 12
Source File: PhotoView.java    From MNImageBrowser with GNU General Public License v3.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener onDoubleTapListener) {
    attacher.setOnDoubleTapListener(onDoubleTapListener);
}
 
Example 13
Source File: PhotoViewAttacher.java    From PhotoViewer with Apache License 2.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
}
 
Example 14
Source File: TouchImageView.java    From TouchNews with Apache License 2.0 4 votes vote down vote up
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
    doubleTapListener = l;
}
 
Example 15
Source File: PhotoView.java    From MoeGallery with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    mAttacher.setOnDoubleTapListener(newOnDoubleTapListener);
}
 
Example 16
Source File: IPhotoView.java    From MoeGallery with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets custom double tap listener, to intercept default given functions. To reset behavior to
 * default, you can just pass in "null" or public field of PhotoViewAttacher.defaultOnDoubleTapListener
 *
 * @param newOnDoubleTapListener custom OnDoubleTapListener to be set on ImageView
 */
void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener);
 
Example 17
Source File: IPhotoView.java    From UltimateAndroid with Apache License 2.0 2 votes vote down vote up
/**
 * Sets custom double tap listener, to intercept default given functions. To reset behavior to
 * default, you can just pass in "null" or public field of PhotoViewAttacher.defaultOnDoubleTapListener
 *
 * @param newOnDoubleTapListener custom OnDoubleTapListener to be set on ImageView
 */
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener);
 
Example 18
Source File: IPhotoView.java    From Tweetin with Apache License 2.0 2 votes vote down vote up
/**
 * Sets custom double tap listener, to intercept default given functions. To reset behavior to
 * default, you can just pass in "null" or public field of PhotoViewAttacher.defaultOnDoubleTapListener
 *
 * @param newOnDoubleTapListener custom OnDoubleTapListener to be set on ImageView
 */
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener);
 
Example 19
Source File: IPhotoView.java    From UltimateAndroid with Apache License 2.0 2 votes vote down vote up
/**
 * Sets custom double tap listener, to intercept default given functions. To reset behavior to
 * default, you can just pass in "null" or public field of PhotoViewAttacher.defaultOnDoubleTapListener
 *
 * @param newOnDoubleTapListener custom OnDoubleTapListener to be set on ImageView
 */
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener);
 
Example 20
Source File: IAttacher.java    From SprintNBA with Apache License 2.0 votes vote down vote up
void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener listener);