After creating the Menu database inside of the Category table, I went to create a new layout call FoodList in android studio to set up the food page and to show the food list.
Then I went to create new java class called “Food” in the Model. In the “Food” class I declared the food table attributes as I have them in a json file.
Additionally, I have a new ViewHolder which I named “FoodViewHolder”.
Now I need to get Category of the food ID, so if user select menu, it will shows food list base on the Menu Id. To do so, I need to set up CategoryId when user click to menu. (This scripts is done in the Home class).
then I imported the (the menu) database. Basically, I declare the food menu database that i created earlier with the Json file.