Read about Android's String Resources
The user sees 3 GUI elements; a Button, EditText, and TextView {Not covered in tutorial, see teacher if you have questions.}
The user can enter their name into the EditText, when the button is pressed the name is placed into the TextView
Remember to use "android:hint" instead of "android:text" in your EditText. Example: "android:hint="@string/enter_your_name"
Optional:
Replace button with a TextChangedListener() to update TextView as text is entered.
String Resources
Create a string-array in the strings.xml resource file (messages sent to the user)
Optional: Use arguments in your resource file
Create another Button and TextView
Every time the button is pressed, display a new string message in the TextView (cycling back to the beginning when complete)
Optional: Use RadioGroup and RadioButtons to determine direction of the cycling
Set text with string resource using placeholders
Recap
ViewGroup vs View
Logcat and debugger
Changing app name and icon
Shortcuts
String-arrays
Formatting Strings
Build and Run your app on device
Video capture your app
Build the .apk file
Rename the .apk file
PeriodLabNumberLastFirstCustomName.apk
P8L02aTraDanGUIBasics.apk
Submit assignment
Video
.apk file
Classes: MainActivity.java
Layouts: activity_main.xml
Values: strings.xml
Custom ideas and demo
App name
Icon
Color, font, images, sound
text to speech?
RadioGroup and RadioButton?
more widgets??
Timer/countdown?
Customize as you desire...
Submit as Lab02b
P8L02bTraDanGUIFun.apk
For use after individual attempts