Closed formatBCE closed 2 years ago
@formatBCE Did you solve it?
@tifezh yes, i managed to make it working by forking and digging into code. You may see my fork https://github.com/formatBCE/AdaptiveTableLayout, but be aware, that a lot was changed there to support dynamic data sets as well.
Could you tell me what part of code you changed to fix this issue?
@namtran4194 sorry for late response - had busy days. Changes were made in AdaptiveTableLayout class:
@Override public boolean onDown(MotionEvent e) { // stop smooth scrolling if (!mScrollerRunnable.isFinished()) { mScrollerRunnable.forceFinished(); } startNestedScroll(ViewCompat.SCROLL_AXIS_VERTICAL); return true; }
here "startNestedScroll" was added.
"scrollBy" method fixed - without that fix nested scroll was laggy as hell.
All rows regarding to NestedScrollingChildHelper were added - field and methods, look at the end of file.
"onScroll" and "onFling" methods.
I suppose, it's enough to get it working. If there's any troubles - inform me please, i will continue to dig.
Hi @formatBCE, thx for using this library. I see you did a good job )) Feel free to create pull request. We will integrate this changes in our library. With best regards Cleveroad team.
Hey @yarovoiag! Will make it asap, thanks! :)
Trying to use this lib together with AppBarLayout, to scroll Toolbar up before scrolling view itself. For this, i wrapped table containing layout to NestedScrollView, but can't achieve proper work - looks like TableLayout does not support such behavior. Could you please take a look?