Coder Social home page Coder Social logo

Comments (7)

KunMinX avatar KunMinX commented on May 18, 2024

@p7nkie
请检查实体类的继承关系。
所有联动逻辑都是基于 BaseGroupedItem 来控制,
所以项目中使用的 GroupedItem 例如 DefaultGroupedItem,须继承于 BaseGroupedItem。
具体可参考项目中的示例。

from linkage-recyclerview.

p7nkie avatar p7nkie commented on May 18, 2024

可是都按照demo继承过了呀,列表都可以正常显示
就是获取数据的时候会出现这种错误
很苦恼@@

from linkage-recyclerview.

KunMinX avatar KunMinX commented on May 18, 2024

@p7nkie
不需要强转。xxxGroupedItem 继承于 BaseGroupedItem(注意是 BaseGroupedItem 不是 DefaultGroupedItem),拿到 xxxGroupedItem 就可以使用。

from linkage-recyclerview.

p7nkie avatar p7nkie commented on May 18, 2024

就是继承的BaseGroupedItem
不强转的话出来的是Object对象 用不了呀

from linkage-recyclerview.

p7nkie avatar p7nkie commented on May 18, 2024

你好 发现问题了
为什么框架最后会加一条DefaultGroupedItem 这个数据呢?
还有最后的The End 怎么去掉呀

from linkage-recyclerview.

KunMinX avatar KunMinX commented on May 18, 2024

@p7nkie
the end 是为了规避联动列表在产品层面的先天缺陷,
具体可翻看之前的 issue,
如不需要,可在 SecondaryAdapterConfig 中为 getFooterLayoutId 传个空白 view 的 layout 的 id,
具体参考示例。

from linkage-recyclerview.

p7nkie avatar p7nkie commented on May 18, 2024

好的 非常感谢!!!

from linkage-recyclerview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.