Skip to content

Instantly share code, notes, and snippets.

@adityaladwa
Created January 8, 2017 09:46
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 adityaladwa/bbae973e35c6b527b29ca58ae5f9f373 to your computer and use it in GitHub Desktop.
Save adityaladwa/bbae973e35c6b527b29ca58ae5f9f373 to your computer and use it in GitHub Desktop.
public class Presenter {
private Context context;
public Presenter(Context context) {
this.context = context;
}
public void onClickMethod(View view) {
Toast.makeText(this.context, "Clicked Method reference button", Toast.LENGTH_SHORT).show();
}
public void onClickReference(User user) {
Toast.makeText(this.context, "Clicked Listener method " + user.getFirstName() + user.getLastName(), Toast.LENGTH_SHORT).show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment