Display Namelist In Recyclerview under each letter in alphabetic Order Android

前端 未结 6 1554
無奈伤痛
無奈伤痛 2021-02-06 08:19

I have list of contacts which has to be displayed in alphabetic under each alphabet as shown in the image shown

How can I do this in RecyclerView, please suggest a solut

6条回答
  •  独厮守ぢ
    2021-02-06 08:54

    You can achieve it with this library.

    There is a full example here of how to add headers.

    And if you want to implement the search functionality, there is also a full example here, this is the result:

提交回复
热议问题