List views do not scroll smoothly
<p>I have two list views. I need to scroll one list view automatically
when the other list view is scrolled. both list views should have this ability</p>

<p>i implemented the onScrollListner in both listviews</p>

<p>for listview 1</p>

<pre><code>@Override
public void onScroll(AbsListView view, int firstVisibleItem,
                int visibleItemCount, int totalItemCount) {
if (l1.getChildAt(0) != null) {
    Rect r = new Rect();
    l1.getChildVisibleRect(l1.getChildAt(0), r, null);
    l2.setSelectionFromTop(l1.getFirstVisiblePosition(), r.top);
    }

}
</code></pre>

<p>for listview 2</p>

<pre><code>@Override
public void onScroll(AbsListView view, int firstVisibleItem,
                int visibleItemCount, int totalItemCount) {
if (l2.getChildAt(0) != null) {
    Rect r = new Rect();
    l2.getChildVisibleRect(l2.getChildAt(0), r, null);
    l1.setSelectionFromTop(l2.getFirstVisiblePosition(), r.top);
    }

}
</code></pre>

<p>I have 2 problems regarding this</p>

<p>1 - the lists do not scroll smoothly. (not like normall listview)</p>

<p>2 - I can only scroll both listviews using one list view.(when i scroll using l2
 both get scrolled. but it does not work when i scroll using l1. both stay fixed)</p>

<p>Thanks in advance</p>
