There is a RecyclerView in which there are elements - chat messages. Each of them corresponds to the date. I need to make it so that when scrolling a message, the date of the message was always pulled up to the top of the activation, and when the new date was pulled up, the old one disappeared and the new one replaced it. I can not precisely formulate, can anyone know how to formulate better - please edit The question is: can this be somehow implemented within one RеcyclerView , or is it somehow done differently? Here is a picture of the layout: enter image description here

    1 answer 1

    See the UltimateRecycleView implementation. Link is present