Home > Mobile >  Android studio onclick" " Change color, should how to write in quotation marks to write ch
Android studio onclick" " Change color, should how to write in quotation marks to write ch

Time:10-10

Android studio onclick ", "how to write in the quotation marks, write changeColor change color, has red line

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,,,
  • Related