I have a fragment called "OverviewFragment" and i have a presenter and Contract for it. I am creating a recyclerview adapter from "Overview fragment".
I have certain doubts regarding how to populate content inside the recyclerview. I have read that an adapter should only act as a View in MVP. But I have certain conditions to be satisfied to display the contents inside recyclerview. Where should i write this business logic?
Also there are answers in SO that we should not create presenters for viewholder. So basically i need to write business logics inside adapter to populate contents in recyclerview or I need to link that to "overview" fragment and then do the business logic in the fragment presenter.
Which is the correct method?
Aucun commentaire:
Enregistrer un commentaire