[Solved] why OnLongClicked action listener (Method) return a value in Android


For onLongClick() returned value notify if the callback consumed the long click or not.

It means that if you return true your callback will be last who serves the “Long click event”, else if you return false framework will looks for the next candidate who can serve the event, it can be some View under yours what also has OnClickListener

solved why OnLongClicked action listener (Method) return a value in Android