Created
June 12, 2016 19:16
-
-
Save frogermcs/d66e990d059199797bed17e293fcbeaf to your computer and use it in GitHub Desktop.
ViewHolder and Dagger 2 example
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 RepositoriesListAdapter extends RecyclerView.Adapter { | |
private RepositoriesListActivity repositoriesListActivity; | |
private Map<Integer, RepositoriesListViewHolderFactory> viewHolderFactories; | |
public RepositoriesListAdapter(RepositoriesListActivity repositoriesListActivity, | |
Map<Integer, RepositoriesListViewHolderFactory> viewHolderFactories) { | |
this.repositoriesListActivity = repositoriesListActivity; | |
this.viewHolderFactories = viewHolderFactories; | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment