How to scroll programatically a ScrollView?
<p>I have a little problem with a ScrollView.</p>

<p>I have a layout for an activity which is made with a ScrollView. This scrollview contains two ListViews.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p>
    </p>

<pre><code>    &lt;ListView android:id="@+id/accountsListView"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:scrollbars="none" /&gt;

    &lt;ListView android:id="@+id/cardsListView"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:scrollbars="none" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>In onCreate method of my activity I compute ListViews height according there contents.</p>

<p>During execution, on activity launch, ScrollView is already scrolled a bit.</p>

<p>So I tried, at the end of onCreate to call method scrollTo(0, 0), but it does not change anything.</p>

<p>Any idea ?</p>

<p>Regards,
Quentin</p>
