muditsen / multilevelrecyclerview

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

Set first root item as expendable by default #3

Closed mladenbabic closed 6 years ago

mladenbabic commented 7 years ago

I implemented your lib and I think that is great, but I have one issue which bugs me. I want to show expandable list but with the first row as expandable. I have tried to set on Item.setExpanded(true), but in that case, it throws me an error:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.remove(ArrayList.java:503) at com.multilevelview.MultiLevelRecyclerView.removePrevItems(MultiLevelRecyclerView.java:177) at com..multilevelview.MultiLevelRecyclerView.onItemClick(MultiLevelRecyclerView.java:159)

Any idea what could be a problem?

vankhoa01 commented 6 years ago

Do you have been fixed this issue @mladenbabic ?

muditsenJabong commented 6 years ago

Yes..!!!