Comments (7)
@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.
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.
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.
from expandablelayout.
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.
@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.
@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)
- Expandable Layout not working in coordinator layout, But working smoothly in linear layout HOT 6
- 3 fill parent Accordion menus HOT 7
- Resetting child view when expanding other view HOT 4
- At a time one expand HOT 2
- Can I expand multiple views at the same time? HOT 3
- Request: Linear layout as root. HOT 3
- Scroll RecyclerView to show selected item expand on top HOT 1
- Indication Markers HOT 1
- Starting expanded HOT 1
- Start expanded HOT 1
- Move away from JCenter HOT 1
- library wont expand on androidx.constraintlayout:constraintlayout:2.0.4 HOT 1
- JCenter is scheduled for closing HOT 1
- mavenCentral() support HOT 1
- mavenCentral() support HOT 1
- Toggle with out clicking on expandable view
- toped working after went to MavenCentral() HOT 2
- How can expand the fist group programatically? HOT 1
- Scrolling to item position is not working
- Unable to download dependency from Maven HOT 2
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 expandablelayout.