當前位置: 首頁>>代碼示例>>Java>>正文


Java GestureDetector.OnDoubleTapListener方法代碼示例

本文整理匯總了Java中android.view.GestureDetector.OnDoubleTapListener方法的典型用法代碼示例。如果您正苦於以下問題:Java GestureDetector.OnDoubleTapListener方法的具體用法?Java GestureDetector.OnDoubleTapListener怎麽用?Java GestureDetector.OnDoubleTapListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.view.GestureDetector的用法示例。


在下文中一共展示了GestureDetector.OnDoubleTapListener方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null) {
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    } else {
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
    }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:9,代碼來源:PhotoViewAttacher.java

示例2: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    if (newOnDoubleTapListener != null)
        this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
    else
        this.mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener(this));
}
 
開發者ID:yun2win,項目名稱:tvConnect_android,代碼行數:8,代碼來源:PhotoViewAttacher.java

示例3: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
}
 
開發者ID:devzwy,項目名稱:NeiHanDuanZiTV,代碼行數:4,代碼來源:PhotoViewAttacher.java

示例4: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
    doubleTapListener = l;
}
 
開發者ID:sinhaDroid,項目名稱:BlogBookApp,代碼行數:4,代碼來源:ZoomImageView.java

示例5: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
    mAttacher.setOnDoubleTapListener(newOnDoubleTapListener);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:5,代碼來源:PhotoView.java

示例6: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener onDoubleTapListener) {
    attacher.setOnDoubleTapListener(onDoubleTapListener);
}
 
開發者ID:Zyj163,項目名稱:yyox,代碼行數:4,代碼來源:PhotoView.java

示例7: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
  doubleTapListener = l;
}
 
開發者ID:zuoweitan,項目名稱:Hitalk,代碼行數:4,代碼來源:TouchImageView.java

示例8: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener listener) {
    mAttacher.setOnDoubleTapListener(listener);
}
 
開發者ID:lanyuanxiaoyao,項目名稱:PicKing,代碼行數:5,代碼來源:PhotoDraweeView.java

示例9: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
/**
 * 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);
 
開發者ID:Loofer,項目名稱:Watermark,代碼行數:8,代碼來源:IPhotoView.java

示例10: setOnDoubleTapListener

import android.view.GestureDetector; //導入方法依賴的package包/類
void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener listener); 
開發者ID:lanyuanxiaoyao,項目名稱:PicKing,代碼行數:2,代碼來源:IAttacher.java


注:本文中的android.view.GestureDetector.OnDoubleTapListener方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。