我有可缩放图像,我使用 SqualGesture探测器。Splo onSqualGesture listener
。 我需要执行以下项目:
- On Single Tap appear Toast with information about picture.
- On Double Tap image is zooming.
我有一些问题。在双塔之前,单塔总是单塔,图片是放大的,但看起来是吐司。有什么办法可以避免单塔?我没有足够的智慧解决这个问题。
P.S. I I OnDoubleTapListener
,因为使用 SqualGesture探测器。SproceOnSqualGestureListener
。
<强 > UPD 强 >
case MotionEvent.ACTION_UP:
firstTime = System.currentTimeMillis();
if (Math.abs(firstTime-secondTime) < 300L) {
// scale my matrix
---//---
DONE = true; //this flag symbolize, that toast doesn t appear (false - appears)
}
else if (!DONE) {
// making toast
}
secondTime = firstTime;
break;
当双塔普启用图像缩放但显示土司时