To Documents
IT 372 -- Project 1b
- App Specs: Create a Java class named
RandomItem that contains an
instance method such as getItem that returns a random quote, joke, riddle, or interesting fact.
Also include a method that adds an item to a NotableItem
class object, such as addItem. See the
Magic8Ball Example. When your class is working, use
it in an app to display a random a random item in a TextView
control. Use the LinearLayout layout. When your app is
able to display the random item, add an event handler so that a random item is
redisplayed when the linear layout is clicked. The random quote should be
chosen from a sample set of at least 8 quotes, but not more than 12.
Display the app title at the top of your app. The title string should be
defined in the string.txt file.
Do not include a
main method in your RandomItem class. The current version
of Android Studio cannot successfully run main methods.
Set properties of the LinearLayout and
TextView controls to set colors and position the widgets.
- Relevant Example: Magic8Ball
- Deliverable: Zip file of Android Project
- Grading Breakdown: Functionality: 50%; Creativity:
10%; App Title Displayed: 5%; Strings in resource file: 5%; Colors in resource file: 5%; Source code comments: 10%;
Source code header: 5% Created Zipfile with Android Studio: 5%; Your name in
zipfile name 5%.