Android Button Listener Code Dissected

Android listeners are the mechanism used to respond to user interaction with a display screen.  Setting up a listener is a very common Android coding task.​  Although it can be done with just a few lines of code, it involves a number of elements that must be configured to interact correctly.

​The diagram below from the video training course Learning Android App Programming dissects the code to establish a listener for a screen button.