Skip to content

Instantly share code, notes, and snippets.

@andrzejchm
Last active June 29, 2016 12:18
Show Gist options
  • Save andrzejchm/51aaca205d3c120e278fc681597e76dc to your computer and use it in GitHub Desktop.
Save andrzejchm/51aaca205d3c120e278fc681597e76dc to your computer and use it in GitHub Desktop.
public class GoodActivity extends DroidMVPActivity<GoodPresentationModel, GoodView, GoodPresenter> {
...
@OnClick(R.id.button) public void onButtonClicked() {
presenter.onButtonClicked();
}
...
}
--
public class GoodPresenter extends SimpleDroidMVPPresenter {
...
public void onButtonClicked() {
getMvpView().showProgress();
// request data from API
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment