SeongUg Steve Jung
1 min readOct 8, 2018

--

Yes, You are correct.

But sometimes Presenter have to interact with adapter data.

Guess that Facebook support Likebutton at each posting.

when user click Like, it should have network api. It means Presenter have to know data, at least id of data.

In this case, Many people implement wrong. In Presenter, it calls View.getClickedData() .

After network, Presenter will update data to notify successful network.
In this case, also Between Presenter and View, they communicate many time.

So in this posting, I want to explain how to make these decoupling.

--

--

SeongUg Steve Jung
SeongUg Steve Jung

Written by SeongUg Steve Jung

Android Developer, Google Developers Experts

Responses (1)