Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the provided code (see the attachment). The new application should have a navigation drawer and the program should look like the following: A Final
the provided code (see the attachment). The new application should have a navigation drawer and the program should look like the following: A Final 07:11 My Collection Food Menu Pout Orders A Final Burgers Menu 07:15 Pouti Food category fragment About half of your screen er ed Porky Pig The Heartstopper Classico Good ol' fashioned Food List fragment About half of your screen A 08:55 ANO 07:40 Item name Num $$ total Porky Pig 2 $10.99 21.98 Good ol' fashioned 1 $9.99 9.99 Chef's Special 1 $14.99 14.99 Smoked Meat Poutine 3 $9.99 29.97 Total: 76.93 GOOD OL' FASHIONED Description Top quality hamburger beef patty with tomatoes, melted cheddar, pickles, and red onions $9.99 Quantity: Enter Quantity ADD THIS ITEM Part 1 Navigation drawer and Food Menu (60) In this part, you should complete all the functionalities for the Food Menu. Feel free to copy the code you have from the previous assignments or class. When your program is first launched, you should show the Food Menu as the default. In addition, while implementing Food Menu, you use recycler view with cards for the FoodCategoryFragment, and when the user clicks on the card, the items in the FoodListFragment get updated. See below: == Final Menu Burgers Porky Pig The Heartstopper Classico Good ol' fashioned 07:15 == Final Menu 08:03 Pouti Burgers Pouti Classic Poutine Italian Poutine Smoked Meat Poutine Chef's Special Remember: items are swiped left and right in FoodCategoryFragment. Items are swiped up and down in FoodListFragment. SMOKED MEAT POUTINE Description Poutine with smoked meat, homemade gravy, and cheddar cheese $9.99 8:09 Quantity: Enter Quantity ADD THIS ITEM Part 2 Database and orders (40) When the Orders in the navigation drawer is clicked, an orders fragment will be shown. You must show all the food items that have been selected so far in the following format. 08:55 Item name Num $$ total Porky Pig 2 $10.99 21.98 Good ol' fashioned 1 $9.99 9.99 Chef's Special 1 $14.99 14.99 Smoked Meat Poutine 3 $9.99 29.97 Total: 76.93 You use the SQLite database to store these selected foods, that is, you will not lose your orders info even when you restart your application. In addition, you cannot have duplicated food items in the orders page. This means that you need to merge the duplicated item and update the value of quantity and total. Finally, when user click on the item, an alert should pop up asking user whether to delete the item. If yes, the selected item should be deleted from database and the selected item should be removed from the list view immediately.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started