• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Why setOnClickListener?

Hi,

To handle click event for button we use
setOnClickListener

Why we use this? I am really confused.

Can anyone explain me.

Thanks,
Pavan
 
A listener is an Object Orientated Principle that will allow your class to react to something done by another class without having to actively monitor it.
 
Back
Top Bottom