Created
January 15, 2016 16:21
-
-
Save shelajev/4f53ea53313b4aa09a4c to your computer and use it in GitHub Desktop.
retrofit2-EventListener.java
This file contains hidden or 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
| Button button = (Button) findViewById(R.id.button); | |
| button.setOnClickListener(new View.OnClickListener() { | |
| @Override | |
| public void onClick(View view) { | |
| GitHubService gitHubService = GitHubService.retrofit.create(GitHubService.class); | |
| final Call<List<Contributor>> call = gitHubService.repoContributors("square", "retrofit"); | |
| new NetworkCall().execute(call); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment