1 package com.moiseum.wolnelektury.components.recycler;
3 import android.content.Context;
4 import android.support.v7.widget.RecyclerView;
5 import android.view.View;
7 import butterknife.ButterKnife;
9 public abstract class ViewHolder<T> extends RecyclerView.ViewHolder {
11 public ViewHolder(View view) {
13 ButterKnife.bind(this, view);
16 public View getView() {
20 protected Context getContext() {
21 return getView().getContext();
24 public abstract void bind(T item, boolean selected);