当前位置: 首页>>代码示例>>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;未经允许,请勿转载。