1 package com.moiseum.wolnelektury.view.library;
3 import android.content.Context;
4 import android.view.ViewGroup;
6 import com.moiseum.wolnelektury.R;
7 import com.moiseum.wolnelektury.components.recycler.RecyclerAdapter;
8 import com.moiseum.wolnelektury.connection.models.BookModel;
14 public class LibraryAdapter extends RecyclerAdapter<BookModel, BookViewHolder> {
16 public LibraryAdapter(Context context) {
17 super(context, Selection.NONE);
21 protected String getItemId(BookModel item) {
26 public BookViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
27 return new BookViewHolder(inflate(R.layout.book_item, parent));