It is necessary to create any list with sections, but so that these elements (sections) are not elements of the list. Those are ABCGD elements, their indices are 01234, I add sections for example: 1 - (AB) 2 - (VG) 3 - (D), their indices remain 01234, it is the implementation of the UI that is of interest. There are a lot of applications with such a list, but solutions on the network use inserts by type and they have common indices whether there is a similar solution. I liked the implementation of Telegram, the list of contacts, I want to do the same.
I am interested in the decision of UI: When adding sections to the list, the indexing of its elements has not changed.
Понравилась реализация Telegram- and how do you know that the implementation you need is there? And how will the UI change if the sections are list items? - post_zeew