To figure this out, just understand what Android's so-called consumption (consume) concept of event handling is, and a user's actions are passed to different view controls and different listening methods for the same control. Any method that receives and processes the event returns true after processing, and if the event is fully processed, the other view or listener method will not be able to process the event again.
The occurrence of Onlongclick is done by a separate thread, and before action_up, and the onclick occurs after action_up, so the same user touch operation may occur both Onlongclick and onclick. Isn't that incredible? So timely to the system to say "I have completely processed (consumption) of the user's this operation" is very important thing. For example, if we return true at the end of the Onlongclick () method, then the OnClick event has no chance of being triggered.
Original: http://www.open-open.com/lib/view/open1378910459772.html
The difference between Android touch events and click events