Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for sections in listview #40

Open
BobDickinson opened this issue Dec 27, 2014 · 0 comments
Open

Add support for sections in listview #40

BobDickinson opened this issue Dec 27, 2014 · 0 comments

Comments

@BobDickinson
Copy link
Member

Both Windows and iOS list views have a built-in concept of "sections" (where there are section headers for ranges of list view items). The simplest example of this is the contacts sample where there is a section header for each letter of the alphabet, where the contact entries starting with that letter show under that section header. The Azure mobile "field engineer" sample app also uses this functionality. Android doesn't have this concept built in, but there are several third party libraries/samples that implement this functionality (by just inserting appropriate rows in the view and treating them specially as section headers - they have their own style and are non-selectable). Xamamin offers this support (see their "Labelled Sections" sample) on Android.

This is moderately complex (the listview is already by far the most involved control). We would also need to figure out a clean way to do data binding using sections (where the section header binding was structurally related to the item binding, perhaps binding to a section, where the item binding context was then relative to the section binding).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant