Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created June 12, 2016 19:11
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 frogermcs/d40499eb8689e1895b5b3eef493fa4da to your computer and use it in GitHub Desktop.
Save frogermcs/d40499eb8689e1895b5b3eef493fa4da to your computer and use it in GitHub Desktop.
ViewHolder and Dagger 2 example
@Module
public class RepositoriesListActivityModule {
private RepositoriesListActivity repositoriesListActivity;
//...
@Provides
@ActivityScope
RepositoriesListAdapter provideRepositoriesListAdapter(RepositoriesListActivity repositoriesListActivity) {
return new RepositoriesListAdapter(repositoriesListActivity);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment