Currently, I have a list of items in RecyclerView of categories foods. When user clicks certain food category from the list, the list of foods related to the selected category should be displayed.
The Question is - what design pattern could I use for this case? Initially, I thought of Strategy design pattern, but I don`t know how to implement it.
if Strategy design pattern best suits my case, then how could I implement it?
Thank you!
Aucun commentaire:
Enregistrer un commentaire