Git Product home page Git Product logo

Comments (7)

chewenkai avatar chewenkai commented on August 20, 2024 6

Hello, I encounter the same problem, it is exactly same as yours.
Is this issue solved now? Can you show your solution here? Really thanks.

from expandable-recycler-view.

sudarshan103 avatar sudarshan103 commented on August 20, 2024 4

Along with notifyGroupDataChanged() mentioned in adapter here,
#27 (comment)

Create copies of ExpandableList & ExpandableRecyclerViewAdapter in your project.
Modify ExpandableList function :

private int numberOfVisibleItemsInGroup2(int group) {
if (expandedGroupIndexes != null && expandedGroupIndexes.length > 0
&& expandedGroupIndexes.length > group) {
if (expandedGroupIndexes[group]) {
return groups.get(group).getItemCount() + 1;
} else {
return 1;
}
}
return 0;
}

Use the modified list in your copied ExpandableRecyclerViewAdapter.
Use the pair of these 2 modified classes.

from expandable-recycler-view.

xPryds avatar xPryds commented on August 20, 2024 1

Same problem here, don't know how to fix.

from expandable-recycler-view.

ugurcany avatar ugurcany commented on August 20, 2024 1

+1

from expandable-recycler-view.

jeancsanchez avatar jeancsanchez commented on August 20, 2024 1

@Almaral-Engineering Some solution for this issue?

from expandable-recycler-view.

ash2osh avatar ash2osh commented on August 20, 2024 1

+1

from expandable-recycler-view.

sudarshan103 avatar sudarshan103 commented on August 20, 2024

#61 (comment)

As i understood, the solution provided above is incorrect. Dont use it. Follow the solution, provided by link below instead, without any modifying of library source code:

#27 (comment)

#61 (comment)
The mentioned solution is worked for me, even the edited version of comment is a working solution. Done some edits to make it more clear.

I was using only #27 (comment) which still leads to some crashes when you do updates group & children data.
So the change mentioned in #61 (comment) is required.

from expandable-recycler-view.

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.