本文整理匯總了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);