Returning true and false in OnTouch?

Does it matter whether to return trueor falsein onTouch()for OnTouchListener? I do not see any difference between the return trueor falsein this example: Android Swipe in the list

+4
source share
1 answer

The return value determines whether you were consuming a touch event.

In other words, it truemeans that this touch event is interesting to you, and all subsequent calls to this touch event, such as ACTION_MOVEor ACTION_UP, will be delivered to you.

false, touch View , . - , - .

, , !

+11

Source: https://habr.com/ru/post/1545078/


All Articles