hollowback
Lurker
Hi, I've got problem with using onTouch and onLongClick events together. My code looks like that:
But only onTouch event is proceeded. Is there any solution, how to use this two events together, or to detect longClick in onTouch event?
Code:
SurfaceView sv = (SurfaceView)findViewById(...);
sv.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
/* ... */
return true;
}
});
sv.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
/* ... */
return true;
}
});