Does anyone know why my logs indicate that onTouch(View, MotionEvent) does not get called. I can see that onTouchEvent(MotionEvent event) is being called. Both are overridden in Activity which implements View.OnTouchEvent.
Does anyone know why my logs indicate that onTouch(View, MotionEvent) does not get called.
Share
AFAIK, Activity does not define
onTouch(..), but it does defineonTouchEvent(..). So you are overriding the latter, but merely defining the former.Also, the
onTouchEvent(..)is a last resort touch handler – it gets called only if views do not handle it: