Answer the question
In order to leave comments, you need to log in
How are keywords implemented in android?
I continue to write my program, and got to the implementation of its key features. Recipe selection should be based on ingredients, which I imagine are some sort of tags.
I click on the "meat" tag or select "meat" from the list and all recipes that include meat are displayed.
How I envision this implementation:
2 related tables in SQLite DB
1st: dish, ingredient_id;
2nd: ingredient_id, ingredient.
that is, the number of rows in the second table is equal to the number of ingredients. And in the first table there will be, in addition to other fields (columns), 4 fields for ingredients.
Are there other ways to implement such keywords?I assume that it is possible to make a variable number of ingredients, but how to do it if they are in the base of the mind I will not apply.
for examples, links to examples, or code snippets I will be very grateful. Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question