How to syncronisize two Listview positions

前端 未结 2 560
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 18:49

I have two ListViews. Is there any way to synchronize the position of ListViews when I scroll any one of the Lists. Im implementing an AbsLis

2条回答
  •  鱼传尺愫
    2020-12-19 19:14

    If the position is visible smoothScrollToPosition() won't scroll. You can thought use scrollTo or scrollBy on the other list that is not scrolling at the moment, but be careful to not enter a recursion with each list calling the other to scroll.

提交回复
热议问题