In Android, The onclick of a view is independent. That is, after a view processes The onclick, the message is not transmitted to the onclick of the parent view. If it is not processed, the message is not transmitted! Onitemclick is not even called after onclick processing! This makes sense.
Onlongclick is also independent. The child view will not pass the message to the parent view regardless of whether the message is not processed. Whether onitemlongclick will be called after onlongclick processing is related to its return value. onitemlongclick will be called only when onlongclick of an item returns false. Onlongclick is associated with oncreatecontextmenu. oncreatecontextmenu is called only when onlongclick returns false. However, it is not associated with onclick. Only when onlongclick is not set will long-pressed messages be converted to short-pressed messages.