title: How to implement a ListView completely inside a ScrollView
body: <p>Here, I'm using a <code>listView</code> inside a <code>ScrollView</code>, everything is working fine but <code>listView</code> isn't displaying completely when I set its height<code>fill_parent</code>. So I've fixed its height and it doesn't look good when I change the android phone device. Can anyone help me in it?
   I'm posting my <strong>xml</strong> class too.</p>
  
  <p>Demo.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
  &lt;LinearLayout 
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical" &gt;
  &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="25dp"
          android:gravity="center"
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:paddingLeft="6dp"
              android:text="@string/course_tracker"
              android:textStyle="bold" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/ll_finishapp_table"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:orientation="vertical" &gt;
  
          &lt;View
              android:layout_width="match_parent"
              android:layout_height="2dp"
              android:background="#E3E3E3" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="#ffffff"
              android:orientation="horizontal"
              android:weightSum="20" &gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="5"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:gravity="center_horizontal|center_vertical"
                      android:text="@string/program_name" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="2"
                  android:gravity="center"
                  android:orientation="vertical"
                  android:background="#e9e9e9" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center"
                      android:text="@string/colon"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="13"
                  android:gravity="center_vertical"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@id/tv_program_name"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingLeft="10dp"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;View
              android:layout_width="match_parent"
              android:layout_height="2dp"
              android:background="#E3E3E3" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="#F9F9F9"
              android:orientation="horizontal"
              android:weightSum="20" &gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="5"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:gravity="center_horizontal|center_vertical"
                      android:text="@string/program_description" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="2"
                  android:gravity="center"
                  android:orientation="vertical"
                  android:background="#e9e9e9" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center"
                      android:text="@string/colon"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="13"
                  android:gravity="center_vertical"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@id/tv_program_description"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingLeft="10dp"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;View
              android:layout_width="match_parent"
              android:layout_height="2dp"
              android:background="#E3E3E3" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="20dp"
          android:orientation="vertical" &gt;
  
          &lt;View
              android:layout_width="match_parent"
              android:layout_height="2dp"
              android:background="#E3E3E3" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="30dp"
              android:background="#ffffff"
              android:orientation="horizontal"
              android:weightSum="20" &gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="10"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:gravity="center_horizontal|center_vertical"
                      android:text="@string/course_name" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="10"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:gravity="center_horizontal|center_vertical"
                      android:text="@string/semester" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;TextView
                  android:layout_width="2dp"
                  android:layout_height="match_parent"
                  android:background="#E3E3E3"
                  android:text="" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;View
              android:layout_width="match_parent"
              android:layout_height="2dp"
              android:background="#E3E3E3" /&gt;
  
          &lt;ListView
              android:id="@id/list_course"
              android:layout_width="match_parent"
              android:layout_height="350dp"
              android:layout_marginBottom="10dp" &gt;
          &lt;/ListView&gt;
      &lt;/LinearLayout&gt;
  
   &lt;/LinearLayout&gt;&lt;/ScrollView&gt;
  </code></pre>
  
  <p>Thanks.</p>