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.

  • one
    Понравилась реализация 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
  • You click on the element (longPress), the section with it is highlighted, but if you scroll further, the same section will be highlighted with another element. In Viber, for example, there is absolutely the same example, but the list on the side, the implementation is slightly different, but in UI everything is 1 in 1. Only the experienced will understand right away. You ask a question to the question, I will try to clarify for you. I am interested in the decision of the UI, where when adding sections - in this list their index did not change. - SweetDev

0