emircanpekyurek / ExpandableRecyclerView

MIT License
11 stars 0 forks source link

Saving And Restoring Expand / Collapse State #1

Closed ThorinHanson closed 2 years ago

ThorinHanson commented 2 years ago

Is there a way to maintain the expand/collapse state?

emircanpekyurek commented 2 years ago

update the library version to 1.0.5 Added keepExpandCollapseState attribute. Default value is true. You can set it to false if you want in ExpandableRecyclerView xml

ThorinHanson commented 2 years ago

Thank you for adding that, but the save state does not persist when navigating away and back. Additionally, it does not persist upon screen rotation, even in your demo.

emircanpekyurek commented 2 years ago

added onSaveInstanceState method to 1.0.6 version