The Xamarin.Forms ListView supports grouping data with easy-to-use APIs in both XAML and programmatically. It also supports grouping items using custom logic, displaying data organized in a hierarchical structure, and grouping headers with various customization options, along with support to expand and collapse a group.
Group items by applying custom logic based on your business requirements, and sort all the data in the groups.
Display an aggregate summary of business objects, an item count of groups, or any details of a data object in the group header.
The user can freeze the group header in the view, which sticks the group caption on the view while scrolling through all the items in the group. This feature is supported for horizontal and vertical ListView as well.
Customize the group header to show expand and collapse icons, or to show any custom user interface. In addition, it supports to customize the background color, and display the more information using data templates. You can autofit or set a desired height for the group header. You can also select a group and items in it using a check box in the group header.
Perform grouping for more than one level of items based on your business requirements. In addition, the ListView can display each group in a hierarchical structure by adding indentation to each level of groups.
For better readability, display more items in the Xamarin.Forms ListView by expanding and collapsing groups. Each group or all groups can be expanded or collapsed either programmatically or through a user interaction.
Supports to push the group header when another group header leads (e.g., Contact list in Android and iOS device) while scrolling.