daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2. public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
  3.     switch (getItemViewType(position)) {
  4.         case Literature.TYPE_BOOK:
  5.             ((BookViewHolder) holder).bindView(position);
  6.             break;
  7.         case Literature.TYPE_MAGAZINE:
  8.             ((MagazineViewHolder) holder).bindView(position);
  9.             break;
  10.         case Literature.TYPE_NEWSPAPER:
  11.             ((NewspaperViewHolder) holder).bindView(position);
  12.             break;
  13.     }
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top