相关文章:
BaseRecyclerViewAdapterHelper详细介绍(一)
BaseRecyclerViewAdapterHelper详细介绍(三)----实现点击事件,添加头布局,脚布局
一,有两种方式实现嵌套功能
1,第一种实现方式 继承BaseMultiItemQuickAdapter
public class OpenRecordAddapter extends BaseMultiItemQuickAdapter<HappyBaseCategoryLists.BaseCategoryBean, BaseViewHolder> {
public static final int ITEM_TITLE = 1;
public static final int ITEM_CONTENT = 2;
public OpenRecordAddapter(@Nullable List<HappyBaseCategoryLists.BaseCategoryBean> data)
{
super(data);
addItemType(RvNestActivity.BIG_BEAN_ITEM_TYPE, R.layout.item_parent2);
addItemType(RvNestActivity.SMALL_BEAN_ITEM_TYPE, R.layout.item_child2);