1 year ago

#364308

test-img

leszekt80

Overlap items in recyclerView

I have a RecyclerView with list of items displayed top to bottom. I would like to have view of last item overlapping with the previous one.

I used RecyclerView.ItemDecoration with negative top margin and it almost does the trick. Item views indeed overlap, but when I'm at the bottom of the list and I start scrolling up then overlapping view disappears too early. It looks like RecyclerView does not take into account the negative margin at all when deciding if item is visible or not.

Is there a way to fix that? Thanks,

enter image description here

android

android-recyclerview

overlapping

0 Answers

Your Answer

Accepted video resources