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

Repeating menu groups in a single list #58

Open
indoomni opened this issue Oct 10, 2018 · 1 comment
Open

Repeating menu groups in a single list #58

indoomni opened this issue Oct 10, 2018 · 1 comment

Comments

@indoomni
Copy link

Hello. Been using your library since yesterday, and it has been wonderful. Thanks for the effort.

Having a question here.. how do I build such a list:


header a
item a1
item a2

header b
item b1
item b2

where basically header a and b are the same object type, and items a1, a2, b1 and b2 are also the same type.

If in the adapter I have two list managers (say, headers and items), then headers will grouped at the top, and all of the items will be grouped below.

Maybe this is just a stupid question, but really appreciate any help. Thanks beforehand.

@DevAhamed
Copy link
Owner

This can be achieved by two ways.

  1. You can add it like,

    --DataItemManager (1 item)
    --DataListManager (multiple items)
    --DataItemManger (1 item)
    --DataListManager (multiple items)

  2. Using DataGroupManager. Kindly take a look into this wiki page - https://github.com/DevAhamed/MultiViewAdapter/wiki/Expandable-Group
    Only caveat here is you need to set the group expansion policy as multiple and set all the groups as expanded by default.

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