issues with searching expandable recyclerview
I came upon kind of a weird issue. I have a recyclerview with the parents always extended. I implemented onQuerryTextChanged in my fragment in order to search through the children. The search works, and all that remains in my list are the parents and the children that contain the searched text. But when I delete the search input, the list doesn't change to the state it had before. In all the search implementations I did with normal recyclerview, everything is fine, but this one I don't quite get. I suspect it's an adapter problem, but I didn't managed to find it. Any help would be appreciated. Thanks.
Hello @daliaan I am trying to do the same but I am a little lost, I don´t know if this is a good place to ask for help but could you please give me a hand with this?
Interesting. It sounds like all that is missing is a call to notifyParentDataSetChanged which will refresh according to what you have in your model objects to the full list. Hard to say what the problem might be without seeing a little bit of code.
Well, I'm afraid I can't help right now with code, must search for it through the commits; thing is I didn't find any implementation of an expandable recyclerview that would have the expected behaviour upon searching, so I ended up using ExpandableListView. The reason for the lack of implementation might be my lack of experience, but hopefully I'll get better at this. Sorry for the truly late reply, appreciate your prompt response. If you still want to see the code with the issue, I'm more than happy to search for it, since I'm using your library again, in my current project.