0

I have two RecyclerView's on the screen. Each View takes half of screen surface. Each View have a LinearLayoutManager as Layout manager with LinearLayoutManager.HORIZONTAL flag.

I need the next effect. When I scroll one of this RecyclerView, another View should be scrolled to the same position in the same time. How I can achieve this?

Sergey Shustikov
  • 14,165
  • 9
  • 62
  • 113

1 Answers1

0

You can use mRecyclerView.scrollBy(dx, dy) where params is variables which are initialized by the onTouch event of first recylcerView

Also see this solution for more detail

Community
  • 1
  • 1
Jemo Mgebrishvili
  • 4,676
  • 6
  • 34
  • 55