Can someone please tell me how the listener interface works, when you set a onclicklistener, what really happens in the background?
The listener you registered gets added to a list of listeners, and when the operating system receives an event (click in this case), it calls the appropriate methods on all the listeners in the list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With