It 's the assignment 1 of Professor Shook's CSE438 Mobile developerment in WUSTL. A basic calorie calculator.
- User can enter total calorie amount on start up (Achieved) Use a dialog here, in mainAcatibity.
- User can add new food item by name (Achieved)
- User can add new food item by calorie (Achieved)
- Adding new food items is done in a second activity (Achieved) Use a new acativity here, acatuall can be instead by a dialog fragement
- Calories remaining is updated with each new food item (Achieved)
- Calorie consumed is updated with each new food item (Achieved)
- The list of food items displays foods and their respective calories amounts (Achieved) Use a list view here and a ArrayList adapter to contain data and view
- Color change when calorie count becomes negative (Achieved) Use a function to judge it Because I add an additional function that can allow users reset the plan calories, when the remaining back to positive again, the color wil back to black
- All inputs are filtered and error messages are displayed accordingly (Achieved) o Simply use two alert dialog to achieve this function, use a button to maintain dialog display order
- Greatly improved the UI Add background to all activities Change the character’s color, size and typeface Change the button on the first page to semitransparent Change the title bar’s color (Actual can remove it and even change the app to whole screen version)
- Add additional function that allow user reset the calories plan Users may mistake a wrong number or regret when finish setting after start up
- Add additional function that remove all the food items in the list and reset the total calorie and plan to 0 at 5:00 user’s local system time.
- Suggestion: The second activity can be perfectly instead by a dialog fragment. Testing function and Future pplan Hope to build another activity that allow users can add sports and calories consume. Bugs free but not work. List it in future plan.