This file contains hidden or 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
public abstract class BaseAdapter<T> extends RecyclerView.Adapter<RecyclerView.ViewHolder> { | |
protected final int VIEW_TYPE_HEADER = 0; | |
protected final int VIEW_TYPE_ITEM = 1; | |
protected final int VIEW_TYPE_FOOTER = 2; | |
protected Context context; | |
protected ArrayList<T> items = new ArrayList<>(); | |
protected int headerViewCount = 0; |