Scrolling in a view containing a ListView (Android)
<p>In one of my activities I am showing certain information and at the end I have a <code>ListView</code>.
So my layout looks a bit like:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="30dip"
&gt;
  ...
  &lt;ListView android:id="@android:id/android:list" android:layout_width="wrap_content"
        android:layout_height="fill_parent" /&gt;

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

<p>When I run the application in the emulator I see that the information before the list view is always shown in the screen and there is a vertical scroll for the <code>ListView</code> only.</p>

<p>Is there a way to change this scrolling behaviour ?. What I would like to have is a vertical scroll for all the information in the screen, not only at the level of the <code>ListView</code>.</p>

<p>I tried wrapping the <code>LinearLayout</code> with a <code>ScrollView</code>, with different combinations of the <code>android:layout_height</code> attribute for all the views involved but I did not get the effect that I was looking for. Besides, some people say that it is a pretty bad idea to wrap a <code>ListView</code> with a <code>ScrollView</code> :</p>

<p><a href="http://stackoverflow.com/questions/1526831/android-scrollview-layout-problem">Android ScrollView layout problem</a></p>

<p><a href="http://stackoverflow.com/questions/306626/scrolling-with-multiple-listviews-for-android">Scrolling with Multiple ListViews for Android</a></p>

<p>Thanks for any other ideas.</p>
