Created
January 8, 2017 09:46
-
-
Save adityaladwa/bbae973e35c6b527b29ca58ae5f9f373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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