Hello
I want to create a recipe app in android(java) and I have some questions.I created a Firestore Database(Cloud firebase) which looks something like this :
Recipes -some food(e.g cookies) -title description how to prepare time photo -ingredients -ingredient1 -ingredient2 etc -macro -protein carbo sugar etc
On main activity I want to display all recipes of food with photo, title and time and only after I click on photo to see all details.
And now my questions are: is there a way to do this in a simple way? It will be a lot of work to create another activity for every recipe and I thought to create only one activty which Update depending on what the user click.
And the other question: I want to make some categories and I dont know where to add it in my database and how to handle it.Maybe to add another node( I don't think this is the right word) like : Italian and there to add food recipes? And how to do it if I want to add popular category ?
Thank you :)
https://stackoverflow.com/questions/66913309/how-to-change-the-content-of-a-fragment-depending-on-firestore-data-in-android April 02, 2021 at 09:07AM
没有评论:
发表评论