Created
September 21, 2018 06:46
-
-
Save keinix/1d5c50cd2c965f1cb1a2a8624b863c39 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
@Override | |
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) { | |
switch (getItemViewType(position)) { | |
case Literature.TYPE_BOOK: | |
((BookViewHolder) holder).bindView(position); | |
break; | |
case Literature.TYPE_MAGAZINE: | |
((MagazineViewHolder) holder).bindView(position); | |
break; | |
case Literature.TYPE_NEWSPAPER: | |
((NewspaperViewHolder) holder).bindView(position); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment