CodePudding user response:
You mean the onClick attribute in the XML? If so, to fill in the corresponding method name, if you have a public void in the MainActivity changeColor (View v) method, you can in the MainActivity corresponding to a given View in the layout setting onClick: "changeColor"CodePudding user response:
Read read, thank you,,,