David Hatten
Create a person counter. The UI should have a + button, and a - button as well as a textview to store the value of the current number. When the app launches, the counter will be at zero. When the + button is pressed, it will increase the counter. When the - button is pressed, it will decrease the number.
If the counter goes above 20, the app will toast a message that it is over 20. This message will only appear when the counter goes over 20. It should not appear for every number over 20, and it should not appear when decrementing regardless of the current number.
Solution Requirements:
- A plus button
- A minus button
- A textview to show the counter
- A toast message when the counter goes above 20.
This application should be very similar to the first application in the book.
Feature | Points |
---|---|
Plus Button | 10 |
Minus Button | 10 |
TextView | 10 |
Strings.xml | 10 |
Plus Works | 15 |
Minus Works | 15 |
TextView Updates | 15 |
Toasts Correctly | 15 |
Total | 100 |
None
None