mercredi 21 juin 2017

Which design pattern to use for user click of RecyclerView to call certain Class?

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