set On Click Listener
Set a callback to handle click events.
It is also possible to handle click events in XML using Android's built-in android:onClick
XML attribute.
Important:
If this click listener is set then android:onClick
will be ignored
Parameters
listener
The callback to be executed when the view is clicked