CymChad / BaseRecyclerViewAdapterHelper

BRVAH:Powerful and flexible RecyclerAdapter
http://www.recyclerview.org/
MIT License
24.33k stars 5.16k forks source link

多布局每一种布局都是一个接口没看明白数据怎么加载 #2047

Closed douya40 closed 6 years ago

douya40 commented 6 years ago

MyBaseModel info = JSON.parseObject(response.get().toString(), MyBaseModel.class); if (info.getState() == Constants.SUCCEED) { AllOrder acty = JSON.parseObject(response.get().toString(), AllOrder.class); List mulEntityList=new ArrayList<>(); MulEntity mulEntity=new MulEntity(4);

                mulEntityList.add(mulEntity);
                multitleAdapter.setNewData(mulEntityList);
            } else {
                ToastUtils.show(info.getData());
            }

怎么给其中布局给数据呢

AllenCoder commented 6 years ago

参考最新示例代码 https://github.com/CymChad/BaseRecyclerViewAdapterHelper/blob/master/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/MultipleItemQuickAdapter.java