I have a RecycleView and when it is scrolled, other RecycleView needs to be scrolled programmatically too. I have implemented the following, where recList
is a RecycleView
. As you can see when X coordinate is queried, it is 419 value, but set 419 for an other RecycleView
has no impact, other RecycleView
is not moving. Why?
Why this line has no effect:
recyclerView0.scrollTo(recyclerView.computeHorizontalScrollOffset(), 0);