sticky-layoutmanager
sticky-layoutmanager copied to clipboard
An android recyclerview sticky item view layout manager library
Migrate to AndroidX
How to using with ConcatAdapter ConcatAdapter can't extend
Having vertically scrolling StickyHeadersLinearLayoutManager + topPadding (clipToPadding=true) on RecyclerView doesn't work as expected and the stickyHeaderView is being moved even beyond the padding threshold.
Used this library in a new project that uses androidx library, so i needed to create this migration. I used jetifier to make it. Thought it would be useful to...
....... ├─ androidx.recyclerview.widget.RecyclerView$AdapterDataObservable │ Leaking: UNKNOWN │ ↓ RecyclerView$AdapterDataObservable.mObservers │ ~~~~~~~~~~ ├─ java.util.ArrayList │ Leaking: UNKNOWN │ ↓ ArrayList.elementData │ ~~~~~~~~~~~ ├─ java.lang.Object[] │ Leaking: UNKNOWN │ ↓ array Object[].[0]...
使用`StickyHeadersLinearLayoutManager`后导致 `lastVisibleItemPosition = ((LinearLayoutManager) layoutManager).findLastCompletelyVisibleItemPosition();`不能正常获取到位置,去掉是好的。
如果我的吸顶header是一个tab, 比如当前tab是0, 我上滑滑动一定距离后出现吸顶tab后,选择第3个,再下滑到不吸顶状态,tab又回到第0个了。
Hey, tried you lib out and it worked well until I noticed a endless loop when enabling vertical scrollbars. Without out scrollbars it works fine. But with vertical scrollbars enabled...
findHeaderIndexOrBefore这个方法一直返回-1。不走后面的createStickyHeader了。