

Those variables are defined in res/values/strings.xml Note that in my activity_main.xml I have 2 string variable for button name and text input placeholder. You can see the XML screen by clicking the XML tab in the bottom.

You can take my layout by copying the XML code below and replace your activity_main.xml code with it. With button, don’t forget to give a value to onClick attribute, this value will be the name of the function you will define later on to be trigger when the button is hit. Should give every component a meaning id so that you can easily recall it while doing the Java code.
