-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issues due to ToolbarLayout #13
Comments
Hmm, that ViewTreeObserver was introduced to listen to toolbar's height changes so I can't just remove it. But I suppose it really is called too frequently. Can you try importing the lib as module and moving that piece of code inside If that solves your performance issues I will apply that as a new solution in the code. |
It works. |
Initialization process is done only once: |
Oh sorry, overlooked that one. |
Do you have an ETA when this fix will be deployed? |
I'm sorry, I am really busy at work recently. I will do it by 11.03 (Friday). |
No problem. I added a pull-request for the changes. |
Today I discovered performance issues regarding the library (bad scrolling-performance in lists, ripple highlighting freezes etc).
Without the FABToolbar the issues are gone. I digged deeper and discovered that if I remove only the
toolbarLayout
from my View-Hierarchy it works as well.Thus I guess it has to do with
toolbarLayout.getViewTreeObserver().addOnGlobalLayoutListener
which is never removed.The text was updated successfully, but these errors were encountered: