StickyHeaders icon indicating copy to clipboard operation
StickyHeaders copied to clipboard

android:clipToPadding="false" not working with StickyHeaderLayoutManager

Open NehaMadiwal opened this issue 7 years ago • 6 comments

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

NehaMadiwal avatar Jan 15 '17 13:01 NehaMadiwal

Same issue here. Please advise.

StephenMilone avatar Feb 01 '17 22:02 StephenMilone

Same issue for me.

amouly avatar Feb 17 '17 18:02 amouly

Is it planned to implement the support of clipToPadding?

Dimezis avatar Mar 09 '17 12:03 Dimezis

Just replace line 788 in StickyHeaderLayoutManager.java with int top = getClipToPadding() ? getPaddingTop() : 0;

crino avatar Nov 23 '17 15:11 crino

Just replace line 788 in StickyHeaderLayoutManager.java with int top = getClipToPadding() ? getPaddingTop() : 0;

not working @crino

jaydipsensussoft avatar Sep 19 '18 10:09 jaydipsensussoft

Just replace line 373 in StickyHeaderLayoutManager.java

int parentHeight = getHeight();

to

int parentHeight = getHeight() - getPaddingBottom();

vishal247 avatar Nov 11 '21 10:11 vishal247