title: Android: how to make a listview fill its parent without scrolling?
body: <p>I want my whole activity to scroll at once, but the ListView which is embedded in my ScrollView won't expand. I just see the first row, but I can scroll through the other rows, when scrolling the listView.
  What I need is for the listView to expand in height so every items it contains are displayed without having to scroll the listview, only the main scrollView...</p>
  
  <pre><code>&lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="5dp"
          android:layout_marginRight="5dp"
          android:orientation="vertical"
          android:layout_weight="1" &gt;
          &lt;LinearLayout
              android:id="@+id/header_Layout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="horizontal" &gt;
  
          ...
  
          &lt;/LinearLayout&gt;
          &lt;TextView
              android:id="@+id/comment"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginBottom="5dp"
              android:layout_marginTop="5dp"
              android:background="@drawable/gradient_background"
              android:text="@string/comments"
              android:textColor="#000000"
              android:textStyle="bold" &gt;
          &lt;/TextView&gt;
  
          &lt;ListView
              android:id="@+id/commentsListView"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_gravity="fill"
              android:divider="@drawable/gradient_divider"
              android:dividerHeight="1dp" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>