Comments (7)
@p7nkie
请检查实体类的继承关系。
所有联动逻辑都是基于 BaseGroupedItem 来控制,
所以项目中使用的 GroupedItem 例如 DefaultGroupedItem,须继承于 BaseGroupedItem。
具体可参考项目中的示例。
from linkage-recyclerview.
可是都按照demo继承过了呀,列表都可以正常显示
就是获取数据的时候会出现这种错误
很苦恼@@
from linkage-recyclerview.
@p7nkie
不需要强转。xxxGroupedItem 继承于 BaseGroupedItem(注意是 BaseGroupedItem 不是 DefaultGroupedItem),拿到 xxxGroupedItem 就可以使用。
from linkage-recyclerview.
就是继承的BaseGroupedItem
不强转的话出来的是Object对象 用不了呀
from linkage-recyclerview.
你好 发现问题了
为什么框架最后会加一条DefaultGroupedItem 这个数据呢?
还有最后的The End 怎么去掉呀
from linkage-recyclerview.
@p7nkie
the end 是为了规避联动列表在产品层面的先天缺陷,
具体可翻看之前的 issue,
如不需要,可在 SecondaryAdapterConfig 中为 getFooterLayoutId 传个空白 view 的 layout 的 id,
具体参考示例。
from linkage-recyclerview.
好的 非常感谢!!!
from linkage-recyclerview.
Related Issues (20)
- ItemInfo无法序列化 HOT 1
- 关于新增Decoration,无法判断行数、列数问题 HOT 2
- 接#45 Decoration问题 HOT 1
- 数据操作怎么办?加一个或减一个 group 或 item 怎么刷新? HOT 1
- 点击分类右侧列表滑倒如何立即滑倒顶部或者指定位置,不要动画。 HOT 1
- 刷新数据时,重新调用init报错 HOT 2
- 点击二级列表时候,点击其他item后,数据会错乱
- 这个库可以实现多级联动吗 HOT 2
- 去掉header无法联动 HOT 1
- ElemePrimaryAdapterConfig,ElemeSecondaryAdapterConfig 用kotlin 写的时候 报错
- 距离最远的主菜单点击切换 滑动的时间是否可以调节 HOT 2
- 重新init数据后一级列表点击定位错误问题。 HOT 5
- 不需要悬浮效果有对外暴露的方法吗,看了下好像只能改源码了? HOT 1
- 程序包不存在 HOT 2
- mGroupTitle 在 LinkagePrimaryViewHolder 中是 private 访问控制 HOT 1
- 悬浮窗使用会报错 HOT 1
- 🚩BaseGroupedItem 只支持String类型的header, 能不能支持对象类型 HOT 4
- 请问怎么隐藏二级菜单 HOT 3
- 怎么更新左边或者右边的局部item啊 HOT 1
- 二级菜单添加单选多选
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkage-recyclerview.