cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
Apache License 2.0
7.22k stars 1.43k forks source link

Expandable groups #90

Closed desugar-64 closed 8 years ago

desugar-64 commented 9 years ago

Hi. Can you add new feature to your UltimateRecyclerView? Expanding groups like in ExpandableListView.

Rainer-Lang commented 9 years ago

Wow - this would be pretty nice!

desugar-64 commented 9 years ago

So, you will add this feature?

Rainer-Lang commented 9 years ago

I think the idea is nice.

desugar-64 commented 9 years ago

Great, I'll be waiting an update :)

jjhesk commented 9 years ago

@cymcsg please flag this as Feature request. It is very hard to incorporate the expandable group into the list group. Can you suggest some existing libraries for reference?

desugar-64 commented 9 years ago

@cymcsg please flag this as Feature request. It is very hard to incorporate the expandable group into the list group. Can you suggest some existing libraries for reference?

In this library implemented expandable groups Advanced RecyclerView .

Also my suggestion for an implementation: You can use in the adapter methods notifyItemRangeRemoved(groupPosition, range); notifyItemRangeInserted(groupPosition, range); to emulate expand and collapse groups. Than all what you need are correctly calculate viewTypes and groups positions.

jjhesk commented 9 years ago

@sergeyfitis I just looked at the library and its demo. They have done amazingly perfect alone. It has alot of features which is already overlaped on the existing library. We need to sort out the existing bugs from the current library firsts since it may trigger even more bugs from the integration.

Rainer-Lang commented 9 years ago

please also look here: https://github.com/bignerdranch/expandable-recycler-view

jjhesk commented 9 years ago

@Rainer-Lang @sergeyfitis @cymcsg this seems to done at this point and it allows plenty of external customisations along with this LinearExpanxURVAdapter.

check out the new pull Dont forget to give me credits. Cheers!!

cymcsg commented 9 years ago

@jjhesk Awesome!

Rainer-Lang commented 9 years ago

@jjhesk Wow - that's really great!!!! Thanks.

jjhesk commented 9 years ago

@cymcsg please also set this into the milestone for v0.4.0