Say I have a RecyclerView and I'm populating it with an object.
And the object has a date field, and when a new date is reached, a standalone header is created with that date, and then the item is added. The following objects with the same date will not create a new header, unless it's a new date.
Is it possible to do this (maybe using getItemViewType), while also being compatible with ItemTouchHelper? So, if I remove the last item under a header at runtime, it'll also remove the header? Also can I make the header not swipeable?
Other SO-posts solutions, as far as I understand, expect that the header information will come as part of the list input, while I want it to be based on the date of the objects.