reference links at the end of this article:
tutorials of this code and how to use interfaces, tutorials of switch statements links are links 1.
summary of there are more implementation methods , for link 2.
the links in the text are visually unified, and the links are all at the end of the text. For the convenience of jumping in the text, the jump links in the text are added.
the following code is for me to learn button and simple code related to listeners and click events:
go straight to the code, discussion and consultation tutorials are linked in reference link (if I need to put the tutorial text up):
five implementations of the Android response onClick method