To Lecture Notes

Magic8Ball Example

Goal:

Directions:

Modifications: Step 1.

  1. Add the Magic 8 Ball predictions to the strings.xml file.
  2. Modify layout to use a linear layout and display one of the Magic8Ball predictions, for example, "Ask again later.". Set the background color to black and the text color to white, using the colors already defined in colors.xml.  Here is a suggested layout file: activity_main.xml
  3. Test the app.

Modifications: Step 2.