Android - PagingDataAdapter collapse/expand

Viewed 221

I'm facing a problem in my app, this is requirement:

  • Display a long list, load from large database. Data in each item is combined from many tables, many queries.

    → So, I think I can use Paging 3, to increase performance and observe for data change.

  • The displayed list need to be hierarchical with parent item and children list, it can collapse, expand.

    → If I using Paging 3, how to custom PagingDataList for support collapse, expand?

Different way:

I use this library FlexibleAdapter, it support collapse/expand and sticky header adapter but I need load all data from database, it very large and low performance.

Please suggest me some solutions.

Thank in advance.

Screenshot

0 Answers
Related