muditsen / multilevelrecyclerview

This is extension of recycler view to make it behave as multilevel expandable list view.
48 stars 24 forks source link

Updated code and fixed bugs #2

Closed alex-lechner closed 7 years ago

alex-lechner commented 7 years ago

Hey, good job on developing the MultiLevelRecyclerView! I haven't found anything comparable when it comes to multi level list expansion. I've updated and optimized the code, fixed bugs and changed the UI a little bit. I've also added the opportunity to set click events on different views in an item in the ViewHolder e.g.: click event on item and expand-click event on an expand button.

Anyway, in case you're wondering why I changed the For-Loops into Enhanced For-Loops in the MultiLevelRecyclerView class: From previous experience when working with RecyclerView, my applications sometimes crashed with an IndexOutOfBoundsException. Those exceptions didn't occur anymore when I used the enhanced loop.

Oh and I've also added a screenshot to the README file 😄

Thank you for this great library!

All the best, Alex