ebarrenechea / header-decor

A couple of sticky header decorations for android's recycler view.
Apache License 2.0
878 stars 159 forks source link

Header moves on left/right when recyclerview uses viewType #56

Open esdrasdl opened 7 years ago

esdrasdl commented 7 years ago

Hello, I found a small issue related with header-decor. I have a RecyclerView with two view types, like a chat app. As I saw in your sample I've implemented StickyHeaderAdapter and created a new StickyHeaderDecoration(adapter) and add it on my RecyclerView through addItemDecoration(decor, 0).

If I have a sequence of layout rows on the same type the header works like a charm. However, if I have different view types close (one view type above/below the another one) the header view shift to right or left. I'm using the version 0.2.8

pankrawat844 commented 5 years ago

yes mee too, any solution