本文整理汇总了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));
}
}
示例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));
}
示例3: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
this.mGestureDetector.setOnDoubleTapListener(newOnDoubleTapListener);
}
示例4: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
doubleTapListener = l;
}
示例5: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {
mAttacher.setOnDoubleTapListener(newOnDoubleTapListener);
}
示例6: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener onDoubleTapListener) {
attacher.setOnDoubleTapListener(onDoubleTapListener);
}
示例7: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener l) {
doubleTapListener = l;
}
示例8: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
@Override
public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener listener) {
mAttacher.setOnDoubleTapListener(listener);
}
示例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);
示例10: setOnDoubleTapListener
import android.view.GestureDetector; //导入方法依赖的package包/类
void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener listener);