android MVP - can I have multiple presenters for custom views and fragments

后端 未结 2 1964
别跟我提以往
别跟我提以往 2021-01-02 04:56

So I have an a presenter that is already tied to an activity. The book says that one presenter should be tied to one view. But now I am adding a few fragments and lots of cu

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 05:14

    Best practice is to create a basepresenter , then create presenter for each view implementing basepresenter

提交回复
热议问题