Comments (7)
目前这个库没有实现此功能,但如果你在此库上拓展折叠的功能也是很简单的。
思路大概如此:
- 获取都组下的全部商品的逻辑已经存在;
- 只要在点击组时,把 1 中获取的条目全部隐藏就行了;
- 给所有条目的 itemBean 添加一个控制显示隐藏的属性 isShow(在Adapter 通过此字段控制是否显示)。当需要隐藏某组下的商品条目时,把 1 中获取到的条目的 isShow 全部设置为 false。然后刷新Adapter就行了。
这个功能我会考虑在空闲时间在此库中添加。
from cartlayout.
from cartlayout.
大佬 分组折叠 怎么搞 隐藏条目以后 下面会空白
from cartlayout.
用 View.GONE 隐藏
from cartlayout.
用 View.GONE 隐藏
不知道view在哪里获取 是在 onBindViewHolder 里么
from cartlayout.
此库已升级,最新版本 v1.0.3 已支持折叠子条目,只需要通过 mAdapter.setCanCollapsing(true);
设置为可折叠即可。
from cartlayout.
此库已升级,最新版本 v1.0.3 已支持折叠子条目,只需要通过
mAdapter.setCanCollapsing(true);
设置为可折叠即可。
谢谢大佬
from cartlayout.
Related Issues (6)
- RecyclerView刷新问题 HOT 1
- List下标溢出啦 HOT 6
- 关于获取选中数据的问题 HOT 5
- 您好 这个group 可以支持单选吗? HOT 7
- 想获取被选中的商品id。。。好像没这个方案 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 cartlayout.