Giter VIP home page Giter VIP logo

Comments (7)

OCNYang avatar OCNYang commented on May 16, 2024

目前这个库没有实现此功能,但如果你在此库上拓展折叠的功能也是很简单的。
思路大概如此:

  1. 获取都组下的全部商品的逻辑已经存在;
  2. 只要在点击组时,把 1 中获取的条目全部隐藏就行了;
  3. 给所有条目的 itemBean 添加一个控制显示隐藏的属性 isShow(在Adapter 通过此字段控制是否显示)。当需要隐藏某组下的商品条目时,把 1 中获取到的条目的 isShow 全部设置为 false。然后刷新Adapter就行了。

这个功能我会考虑在空闲时间在此库中添加。

from cartlayout.

Quenstin avatar Quenstin commented on May 16, 2024

from cartlayout.

whb521 avatar whb521 commented on May 16, 2024

大佬 分组折叠 怎么搞 隐藏条目以后 下面会空白

from cartlayout.

OCNYang avatar OCNYang commented on May 16, 2024

用 View.GONE 隐藏

from cartlayout.

whb521 avatar whb521 commented on May 16, 2024

用 View.GONE 隐藏

不知道view在哪里获取 是在 onBindViewHolder 里么

from cartlayout.

OCNYang avatar OCNYang commented on May 16, 2024

此库已升级,最新版本 v1.0.3 已支持折叠子条目,只需要通过 mAdapter.setCanCollapsing(true); 设置为可折叠即可。

from cartlayout.

whb521 avatar whb521 commented on May 16, 2024

此库已升级,最新版本 v1.0.3 已支持折叠子条目,只需要通过 mAdapter.setCanCollapsing(true); 设置为可折叠即可。

谢谢大佬

from cartlayout.

Related Issues (6)

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.