How to make sticky section headers (like iOS) in Android?

后端 未结 5 1907
死守一世寂寞
死守一世寂寞 2020-12-23 14:25

My specific question is: How I can achieve an effect like this: http://youtu.be/EJm7subFbQI

The bounce effect is not important, but i need the \"sticky\" effect for

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 14:46

    You can reach this effect using SuperSLiM library. It provides you a LayoutManager for RecyclerView with interchangeable linear, grid, and staggered displays of views.

    A good demo is located in github repository

    It is simply to get such result

    app:slm_headerDisplay="inline|sticky"
    or
    app:slm_headerDisplay="sticky"
    

提交回复
热议问题