After many experiments with onTouchEvent and onTouch, I found that onTouch works everywhere you want (whether it is in activity or view) as long as you have declared the interface and put the Listener right! On the other hand, onTouchEvent only works inside a View!
Is my assumption correct? Is this the real difference?
After many experiments with onTouchEvent and onTouch, I found that onTouch works everywhere you
Share
Yes you are correct –
onTouch()is used by users of theViewto get touch events whileonTouchEvent()is used by derived classes of theViewto get touch events.