Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Multipleviews #11

Closed
kozmabalazs opened this issue Jun 8, 2017 · 4 comments
Closed

Multipleviews #11

kozmabalazs opened this issue Jun 8, 2017 · 4 comments

Comments

@kozmabalazs
Copy link

kozmabalazs commented Jun 8, 2017

Hi @DevAhamed,

I was reading the Multiple Data Sets section on the wiki and I wonder if it is possible to add a header view for each data set?

Also in this example I see that there are two separate list. How can we do if we have one list with different kind of views? (Ex.: a newsfeed where one item is a photo item, one a simple text item and they have different layouts)

Thank you.

@DevAhamed
Copy link
Owner

DevAhamed commented Jun 8, 2017

Yes, you can add headers to every data set. Here is the sample link

For the same data set, you can have two different binders. ie., PhotoBinder and TextBinder. The adapter will pick the correct binder. Kindly refer this example for that

@DevAhamed
Copy link
Owner

Feel free to re-open if you are still facing the issue.

@ghost
Copy link

ghost commented Oct 21, 2017

How to remove header of that data set when the data is empty?

@DevAhamed
Copy link
Owner

DevAhamed commented Oct 22, 2017

You can call removeItem() on your DataItemManager object to remove the header once set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants