Pulling Recipes Details from Database
- Dominic Ng
- Nov 11, 2018
- 1 min read
Updated: Feb 6, 2019
Hello! Its been a tough week this week due to the overwhelming tutorials from other modules as well as the tough user story I took on. This week, I worked on pulling all the details of each recipes into RecipeInfoActivity. This activity was a rather time-consuming task for me due to the huge amount of data I had to pull from the database. Shout out to Ren Kee for the python script that initialize all the recipe’s information in Firebase!
As mentioned last week, it was my first time working with a designer and hence, after pulling data from the database, displaying it was another issue. For this page, I had 3 recycler views to display my data on which are the ingredients recycler view, instructions recycler view as well as the nutrition recycler view. After pulling the details from the database, I had to initialize 3 Lists to store the data and create 3 adapters to display it on the recycler view. This was rather time-consuming and tedious to do but after completing this page, it was rather rewarding seeing how our Android application looks very similar to the one that was designed by the UI / UX designer.
After completing this task where I managed to pull all the details of the recipe and display them the same way in the prototype, I took a short break from this project and will start to work on my next feature next week. I will be working on the popular tab in the home page, where I will be documenting my progress in my next blog. See you there!



Comments