What is meaning of boolean value returned from an event-handling method in Android

If you return true from an ACTION_DOWN event you are interested in the rest of the events in that gesture. A “gesture” in this case means all events until the final ACTION_UP or ACTION_CANCEL. Returning false from an ACTION_DOWN means you do not want the event and other views will have the opportunity to handle it. If you have overlapping views this can be a sibling view. If not it will bubble up to the parent.

Leave a Comment