仿照之前的通用listview adapter所写,如有问题,请留言交流
public abstract class CommonRecyclerAdapter<T> extends RecyclerView.Adapter<ViewRecyclerHolder> {
protected LayoutInflater mInflater;
protected Context mContext;
protected List<T> mDatas;
protected final int mItemLayoutId;
public CommonRecyclerAdapter(Context context, List<T> mDatas,