android Programming Glossary: scrollmanager
Sync Two ScrollView http://stackoverflow.com/questions/3527119/sync-two-scrollview I have a simple solution that works for me subclass both ScrollViews and override their onScollChanged event to update ScrollManager when scrolling changes public interface ScrollNotifier public void setScrollListener ScrollListener scrollListener public.. this.scrollListener scrollListener @Override public ScrollListener getScrollListener return scrollListener create a ScrollManager class that coordinates the scrolling of multiple participants public interface ScrollListener void onScrollChanged View.. public interface ScrollListener void onScrollChanged View syncedScrollView int l int t int oldl int oldt public class ScrollManager implements ScrollListener private static final int SCROLL_HORIZONTAL 1 private static final int SCROLL_VERTICAL 2 private..
|