Possible duplicate:
How to synchronize two positions of Listview
Sync 2 ListViews when scrolling
I have two ListViews. Is there a way synchronizeto specify a position ListViewswhen scrolling through any of the lists. I implement AbsListView.OnScrollListenerby registering on ListView.
When it scrolls ListView, the method will fire onScroll() OnScrollListener, then I call smoothScrollToPosition(). But this does not work properly.
Can someone provide me some sample code for this? ... I just want to scroll one ListView, and the other ListViewmoves synchronously. If you want to know why I use 2 ListView, this is because I'm trying to create my own composite control that behaves like DataGridViewwith a fixed column and headers
source
share