Answer by wangzhangjian for Synchronise ScrollView scroll positions - android
In the Android support-v4 package, Android provide a new class named NestedScrollView. we can replace the <ScrollView> node with <android.support.v4.widget.NestedScrollView> in layout xml,...
View ArticleAnswer by Taiko for Synchronise ScrollView scroll positions - android
An improvement to Andy's solution :In his code, he uses scrollTo, the issue is, if you fling one scrollview in one direction and then fling another one in another direction, you'll notice that the...
View ArticleAnswer by Aaron Newton for Synchronise ScrollView scroll positions - android
Why not just implements OnTouchListener in your activity. Then override the onTouch method, then get the scroll postion of the first ScrollViewOne.getScrollY() and update ScrollViewTwo.scrollTo(0,...
View ArticleAnswer by Andy for Synchronise ScrollView scroll positions - android
There is a method in ScrollView...protected void onScrollChanged(int x, int y, int oldx, int oldy)Unfortunately Google never thought that we would need to access it, which is why they made it protected...
View ArticleSynchronise ScrollView scroll positions - android
I have 2 ScrollViews in my android layout. How can I synchronise their scroll positions?
View Article
More Pages to Explore .....