Code Monkey home page Code Monkey logo

Comments (7)

cachapa avatar cachapa commented on July 2, 2024 4

@droidluv thanks for the report. I've managed to reproduce the issue (or at least a similar issue) on my side. I'll try to issue a fix as soon as possible.

from expandablelayout.

Trust-Coder avatar Trust-Coder commented on July 2, 2024

you need to notify the recyclerview that your data is changed so it will reload the updated views. use notifydatasetchanged with the position of item you changed.

from expandablelayout.

droidluv avatar droidluv commented on July 2, 2024

Its not a data issue, the layout fails to collapse, it will be frozen, and I'm not talking about data update here, its like mentioned if I started collapse or expand action and suddenly scrolled with especially a fling action the layout will bug out and the viewholder will hold out a bugged out version of the expandable layout which will be partially collapsed or expanded and on click will hide its content after a delay but won't collapse, the only solution is to prevent user from scrolling until the expand or collapse animation has completed to prevent the layout from bugging out when being recycled.

from expandablelayout.

Trust-Coder avatar Trust-Coder commented on July 2, 2024

from expandablelayout.

droidluv avatar droidluv commented on July 2, 2024

I think you're confused with what I am saying, lets make it a bit more clear, if a view holder containing a swipe view layout is getting recycled when its collapsing or expanding (suppose the collapse time is 1 second because the content is large), during that time the swipe view layout has a freeze issue where it will freeze out part way, and nothing, even calling collapse() or expand() makes it animate anymore, but it will hide its content when calling collapse() and make items visible when calling expand() all the time while being partially open.

I am already maintaining saved states to preserve which position(s) needs to be expanded and collapsed

from expandablelayout.

pdadmehr avatar pdadmehr commented on July 2, 2024

@cachapa, Is it possible to use the Recycler view with 3 levels? Parent, Child, and Grand Child where expanding parent will reveal all of its children and expanding each of those children will reveal theirs?

from expandablelayout.

cachapa avatar cachapa commented on July 2, 2024

@pdadmehr honestly I'm not sure. ExpandableLayout wasn't really designed to be nested since it needs to be able to measure its children so it can size itself.

I think it might work but I'd still recommend against it, as I'm afraid performance wouldn't be great. ExpandableLayout requests layout rebuilds on every frame when expanding or contracting, so its children should be as simple as possible.

from expandablelayout.

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.