Skip to content

Instantly share code, notes, and snippets.

@maydin
Last active February 15, 2017 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maydin/abbd20fa91045a52a07a15a660fe1df2 to your computer and use it in GitHub Desktop.
Save maydin/abbd20fa91045a52a07a15a660fe1df2 to your computer and use it in GitHub Desktop.
Presenter
public abstract class Presenter {
protected View view;
private AppCompatActivity activity;
public Presenter(AppCompatActivity activity,View view) {
this.activity = activity;
this.view = view;
onCreateView();
}
public View getView() {
return view;
}
public abstract void onCreateView();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment