Giter Site home page Giter Site logo

sticky-layoutmanager's Issues

possible memory leak??

.......

├─ 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]
│ ~~~
├─ androidx.recyclerview.widget.RecyclerView$RecyclerViewDataObserver
│ Leaking: UNKNOWN
│ ↓ RecyclerView$RecyclerViewDataObserver.this$0

....

Critical codes are removed

topPadding on RecyclerView is ignored

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.

Endless loop to computeVerticalScrollOffset

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 I get an endless loop to the following methods.

public int computeVerticalScrollExtent(State state)
public int computeVerticalScrollOffset(State state)
public int computeVerticalScrollRange(State state)

Stacktrace:

•	"main"@8,037 in group "main": RUNNING
•	computeVerticalScrollOffset:215, StickyHeadersLinearLayoutManager {com.jay.widget}
•	computeVerticalScrollOffset:1948, RecyclerView {android.support.v7.widget}
•	onDrawScrollBars:16826, View {android.view}
•	onDrawForeground:20892, View {android.view}
•	draw:19205, View {android.view}
•	draw:4107, RecyclerView {android.support.v7.widget}
•	updateDisplayListIfDirty:18142, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	recreateChildDisplayList:4220, ViewGroup {android.view}
•	dispatchGetDisplayList:4200, ViewGroup {android.view}
•	updateDisplayListIfDirty:18101, View {android.view}
•	updateViewTreeDisplayList:669, ThreadedRenderer {android.view}
•	updateRootDisplayList:675, ThreadedRenderer {android.view}
•	draw:783, ThreadedRenderer {android.view}
•	draw:2992, ViewRootImpl {android.view}
•	performDraw:2806, ViewRootImpl {android.view}
•	performTraversals:2359, ViewRootImpl {android.view}
•	doTraversal:1392, ViewRootImpl {android.view}
•	run:6752, ViewRootImpl$TraversalRunnable {android.view}
•	run:911, Choreographer$CallbackRecord {android.view}
•	doCallbacks:723, Choreographer {android.view}
•	doFrame:658, Choreographer {android.view}
•	run:897, Choreographer$FrameDisplayEventReceiver {android.view}
•	handleCallback:790, Handler {android.os}
•	dispatchMessage:99, Handler {android.os}
•	loop:164, Looper {android.os}
•	main:6494, ActivityThread {android.app}
•	invoke:-1, Method {java.lang.reflect}
•	run:438, RuntimeInit$MethodAndArgsCaller {com.android.internal.os}
•	main:807, ZygoteInit {com.android.internal.os}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.