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 covering vertical scrollbar #60

Closed ryanw-mobile closed 6 years ago

ryanw-mobile commented 7 years ago

I'm setting up the StickyHeaderDecoration like this:

mRecyclerViewAdapter = new MyStickyHeaderAdapter(...);
mStickyHeaderDecoration = new StickyHeaderDecoration(mRecyclerViewAdapter);
mRecyclerView.setAdapter(mRecyclerViewAdapter);
mRecyclerView.addItemDecoration(mStickyHeaderDecoration);

And the layout is something like:

    <android.support.v7.widget.RecyclerView
        android:id="@+id/recyclerview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="vertical" />

The sticky header works, but then the headers are showing on top of the scroll bars: screenshot_2016-12-27-19-53-48

Not sure if anything I can do to make the headers not covering the scrollbar?

Thanks!