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
//T is a type of items | |
//when inheriting, just create constructor matching super, | |
//and override viewHolder() method that will return ViewHolder for given item type | |
public abstract class BaseRecyclerAdapter<T> extends RecyclerView.Adapter<BaseRecyclerAdapter.BaseViewHolder> { | |
public interface OnItemClickListener<T> { | |
void onClick(T item); | |
} |