Hello,
I have two ListViews (one of which is inside a swipe-workspace), and I need 
to synchronize their scrolling. How can I do this? I already tried and used 
the setSelectionFromTop method, but it is the slowest thing I've ever seen!
Anyway, this is the code I am usually using:

public void onScroll(AbsListView view, int firstVisibleItem, int 
visibleItemCount, int totalItemCount) {
int scrollToThisPosition = firstVisibleItem;

index = firstListView.getFirstVisiblePosition();
View v = firstListView.getChildAt(0);
top = (v == null) ? 0 : v.getTop();
secondListView.setSelectionFromTop(index, top);
}

Do you have any suggestions?
Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to