scroll view and list view problem in android
<p>I am adding scroll view for whole layout.  inside that layout  I am adding lot of view  list view and  fixed footer.my list view content is not displaying properly  its height is very short.  without scroll view its coming properly. can anybody tell what is problem how to resolve it?  list view is loading dynamically .My xml file is given below</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;


  &lt;ScrollView android:id="@+id/mainScrollView"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:layout_weight="1" xmlns:android="http://schemas.android.com/apk/res/android"
        android:fillViewport="true" android:scrollbars="none" android:isScrollContainer="false"&gt;


 &lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"&gt;




  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/mainLinear"
  android:gravity="left" &gt;
     &lt;ImageView android:src="@drawable/day2" android:gravity="center"   android:id="@+id/imgDay" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ImageView&gt;
        &lt;ImageView android:src="@drawable/meetingtimetable2"    android:gravity="center"  android:id="@+id/txtMeeting" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ImageView&gt;
   &lt;ImageView android:src="@drawable/eventschedule2"   android:gravity="center"  android:id="@+id/imgEvent" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ImageView&gt;
  &lt;/LinearLayout&gt;


   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
     android:layout_below="@+id/mainLinear"
       android:background="@drawable/day3"
       android:paddingTop="10dip"
        android:id="@+id/commonLinear"&gt;
    &lt;include
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:id="@+id/commonLayout"
    layout="@layout/common"/&gt;
  &lt;/LinearLayout&gt;



  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/chkLinear"
  android:background="@drawable/meetingtimetable3"
   android:layout_below="@+id/mainLinear"
    android:layout_toRightOf="@+id/commonLinear"
     android:orientation="vertical"&gt;



   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
     android:id="@+id/subLinear"
     android:layout_marginLeft="5dip"
     android:paddingTop="10dip"
     android:layout_marginBottom="5dip"
    android:gravity="center" &gt;
    &lt;Button android:background="@drawable/meetingrequestrecieved" android:layout_marginRight="5dip"  android:gravity="left"  android:id="@+id/btnMeetingRequest" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt;&lt;/Button&gt;
 &lt;Button android:background="@drawable/newmeeting" android:layout_width="wrap_content" android:gravity="left" android:layout_height="wrap_content"  android:id="@+id/btnSendNewRequest"&gt;&lt;/Button&gt;

&lt;/LinearLayout&gt;



  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/listLinear"
  android:layout_toRightOf="@+id/commonLinear"
  android:layout_below="@+id/subLinear"
  android:gravity="left"
  android:paddingRight="5dip"&gt;
   &lt;ListView  android:id="@+id/lstSendMeeting" android:scrollingCache="false"  android:layout_width="300dip" android:layout_height="wrap_content"&gt;&lt;/ListView&gt;
    &lt;/LinearLayout&gt;

   &lt;/LinearLayout&gt;

&lt;/RelativeLayout&gt;
&lt;/ScrollView&gt;

&lt;!-- footer --&gt;

    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
       android:id="@+id/bottomLinear1"&gt;
    &lt;include
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:id="@+id/commonLayout1"
    layout="@layout/commonbottom"/&gt;
  &lt;/LinearLayout&gt;

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

<p>Thanks</p>
