ShamylZakariya / StickyHeaders

Adapter and LayoutManager for Android RecyclerView which enables sticky header positioning.
MIT License
1.4k stars 185 forks source link

android:clipToPadding="false" not working with StickyHeaderLayoutManager #47

Open NehaMadiwal opened 7 years ago

NehaMadiwal commented 7 years ago

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

StephenMilone commented 7 years ago

Same issue here. Please advise.

amouly commented 7 years ago

Same issue for me.

Dimezis commented 7 years ago

Is it planned to implement the support of clipToPadding?

crino commented 6 years ago

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

jaydipsensussoft commented 6 years ago

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

not working @crino

vishal247 commented 2 years ago

Just replace line 373 in StickyHeaderLayoutManager.java

int parentHeight = getHeight();

to

int parentHeight = getHeight() - getPaddingBottom();