Scroll a scroll View Manually in program with gesturesDetector?
<p>I have 2 scrollable views above and below like 2 blocks. Both have to be scrolled. Now I want to scroll both of them with the same gesture on scrolling and not individually.I am not using Toolbars or Collapsable Toolbar.
I have created a Parent Relative Layout class and have overriden to get all the ScrollEvents with Gesture Detector. But I don't know how to scroll the views.</p>

<pre><code>public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
</code></pre>

<p>Now from here I don't know how to scroll a particular scroll view smoothly. I know default implementation does it but I am not using the default implementations.
I can use</p>

<pre><code>scrollView.scrollTo();
</code></pre>

<p>but what values to pass and how to do it smoothly I don't know. 
Please Help.</p>