chaychan / MultipleItemRvAdapter

基于BaseRecyclerViewAdapterHelper封装多条目适配器,子条目单独在对应的ItemProvider中,便于项目维护(Based on the BaseRecyclerViewAdapterHelper package multi-item adapter, sub-item alone in the corresponding ItemProvider for easy project maintenance)
194 stars 35 forks source link

依赖问题 #5

Open cjcj125125 opened 6 years ago

cjcj125125 commented 6 years ago

大佬你好,看到你前天修改了代码,demo看了也是可以用,但是添加BaseRecyclerViewAdapterHelper依赖后再添加你的MultipleItemRvAdapter(1.0.4)后,再 mProviderDelegate.registerProvider(new TextMessageItemProvider()); 会提示类型错误,因为这里registerProvider()中需要的是com.chad....包的,建议整合到 BaseRecyclerViewAdapterHelper包中,谢谢

chaychan commented 6 years ago

@cjcj125125 现在BaseRecyclerViewAdapterHelper已经有整合MultipleItemRvAdapter的代码,你可以选择使用MultipleItemRvAdapter或BaseRecyclerViewAdapterHelper,而不是都导入

cjcj125125 commented 6 years ago

我这边看源码(BaseItemProvider)里面已经加了viewType() 和layout()两个抽象方法,但是我这边添加的最新依赖为啥没有呢?