I want to show the date dynamically in the header of the RecyclerView and group the items of that date inside it.
My data class looks something like this
data class Feed(
val id: String = "",
val title: String = "",
val createdAt: Long = 0L,
)
And I have to create a view something like this
Will any of you please help me with this? I'm trying to solve it for the last 2 days. But not able to figure out how exactly I get this one?
Thanks in Advance!!