DevAhamed / MultiViewAdapter

Easily create complex recyclerview adapters in android
https://devahamed.github.io/MultiViewAdapter
Apache License 2.0
820 stars 149 forks source link

Expanding non-child groups #45

Closed reuvenlevitsky closed 5 years ago

reuvenlevitsky commented 6 years ago

Is it possible to expand groups that are not children? For example, I have a header that says "expand all", when clicking this header I want to expand three different groups bellow this header. As far as I can see I can only expand from the ViewHolder itself and that's not enough for this requirement I think.

DevAhamed commented 6 years ago

Thanks for the feature request :)

As far as I can see I can only expand from the ViewHolder itself and that's not enough for this requirement I think

Yes, it is not possible with the current version. I am working on the next big update which will enable this feature for you. Stay tuned :)

DevAhamed commented 5 years ago

Added in v2.0.0. Please take a look at docs for implementation.

Documentation - https://devahamed.github.io/MultiViewAdapter Exact JavaDoc method - https://devahamed.github.io/MultiViewAdapter/javadocs/mva2/adapter/Section.html#hideSection--

DevAhamed commented 5 years ago

Closing it for now. Please re-open this issue if the feature is not working as expected.

reuvenlevitsky commented 5 years ago

Thanks! I will have a look. Amazing library by the way, very simple to use and works great!