RecyclerView scrollToPosition doesn't affect app bar initially
smelfungus opened this issue · 5 comments
Easy reproducing with in-library sample:
SmoothScrollParallaxActivity
After line 91 add:
vRecyclerView.postDelayed(new Runnable() {
@Override
public void run() {
vRecyclerView.smoothScrollToPosition(30);
}
}, 2000);
RecyclerView will scroll down but app bar won't collapse.
There is also an important note — if any manual interactions with RecyclerView are done before programmatic scroll — it will fire as it should.
Am I missing something? Maybe it is needed to perform some kind of sync on initialization?
Thank you in advance.
Thanks for your feedback. The fix is on this PR #176. I am about deploying to all release versions.
Hi @DummyCo
What support lib version are you using?
Please check TAGS section in this repo to see all supported version. Thanks. Let me know if you run into any other issues.
@henrytao-me, works like a charm now, thank you.
25.1.0 support version is used.
Nice @DummyCo