I figure out that it's very useful to use MVP pattern in my apps, but it's too complicated for me, how find out of role elements in apps, which is model, view, presenter?
- What is adapter of recyclerview? I guess it should be a view, but it manage loading data to recyclerview, so it can be also presenter or model
- How many presenters can have view? What is basic? For one view should be one present and one model? But if I have some view and can they use one presenter?
- I have an app with recyclerview which is loading images from rest api. I wanna figure out elements for MVP. Activity with recycler view is View? Adapter is Presenter? Picasso is Model? Retrofit is Model? Notification Service for download in external storage is Model? Image class is Model?
- Can you please give a link for big complex apps with MVP architecture, please?
Aucun commentaire:
Enregistrer un commentaire