Lab: Create the version of Hello World that changes a message when a button is clicked.
Make up your own unique message. Paste into Word two screen captures (before and after
the button click) of your project running in an AVD.
Due: Sept. 5
Hit the U-shaped icon and move the items around a bit to get some "constraints".
But I ended up typing my own constraints into the xml in the layout's Text view.
It should look something like:
Write Java code like the following
You need to instantiate a "code version" of any dynamic item in the layout.
Don't forget the imports at the top.
Next add code for a "toast"
Toast.makeText(getApplicationContext(), "Here's to you " + username, Toast.LENGTH_LONG).show();
Finally add code for "log cat"
Log.d("HW_Tag", "username was "+username);
Make a screen capture of your result before and after clicking the button (do the latter quickly enough that
I can see your toast). Paste them into a Word document and send them to me.