I need to implement logic for panning surface and be able to click on it to place image, but when I'm trying to add gesture detector as simple as:
public boolean onTouchEvent(MotionEvent event) {
if (gestureDetector.onTouchEvent(event)) {
return true;
} else {
return super.onTouchEvent(event);
}
}
And when I'm starting gesture, image being placed on screen. Please help.