StickyHeaders
StickyHeaders copied to clipboard
android:clipToPadding="false" not working with StickyHeaderLayoutManager
I need to use android:clipToPadding="false" for Sticky Header RecyclerView with some top padding. I am not able to get it working with StickyHeaderLayoutManager. It's working fine if used with LinearLayoutManager
Same issue here. Please advise.
Same issue for me.
Is it planned to implement the support of clipToPadding
?
Just replace line 788 in StickyHeaderLayoutManager.java
with
int top = getClipToPadding() ? getPaddingTop() : 0;
Just replace line 788 in
StickyHeaderLayoutManager.java
withint top = getClipToPadding() ? getPaddingTop() : 0;
not working @crino
Just replace line 373 in StickyHeaderLayoutManager.java
int parentHeight = getHeight();
to
int parentHeight = getHeight() - getPaddingBottom();