I have several RecyclerView(s) which I need to keep synchronized. This is very easy when the user is manually scrolling, but when I need to scroll programmatically using SmoothScrollToPosition and an OnScrollListener it does not always seem to work. Sometimes the OnScrolled event of the OnScrollListener is not triggered for all the RecyclerView(s) or the dy parameter of OnScrolled recieves a value of 0. to which I have attached it (using AddOnScrollListener). I have created/overridden the following classes/methods:
SmoothScrollToPosition from LinearLayoutManager
CalculateDtToFit from LinearSmoothScroller
OnScrolled from OnScrollListener
I'm not sure how to make sure the OnScrollListener(s) are always triggered so that I can keep all the RecyclerView(s) in sync. How can I do this?