title: ScrollView and RelativeLayout scrolling issue for ExpandableListView
body: <p>I am having below layout which displays contact details and also have one expandable list. But the problem is that Expandable List View is fixed but I have given it fill_parent for height so it must take full height which is available. Also the scroll view is applied to list only instead of the whole layout. If anyone has any idea please kindly help me.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
      android:id="@+id/scroll"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#FFFFFF"
      android:scrollbars="vertical|horizontal" &gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
           &gt;
  
          &lt;RelativeLayout
              android:id="@+id/vsHeader"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/header" &gt;
  
              &lt;Button
                  android:id="@+id/btnHome"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerVertical="true"
                  android:background="@drawable/home"
                  android:onClick="btnHomeClick" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:id="@+id/contactheader"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/vsHeader"
              android:padding="5dip" &gt;
  
              &lt;TextView
                  android:id="@+id/txtContactName"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="5dip"
                  android:text="Hello Taxi"
                  android:textColor="@color/autoText"
                  android:textSize="@dimen/text_size_large"
                  android:textStyle="bold" /&gt;
  
              &lt;ImageView
                  android:id="@+id/img_address"
                  android:layout_width="25dip"
                  android:layout_height="25dip"
                  android:layout_below="@id/txtContactName"
                  android:layout_marginBottom="5dip"
                  android:contentDescription="@string/content_description"
                  android:src="@drawable/address" /&gt;
  
              &lt;TextView
                  android:id="@+id/txt_Address"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/txtContactName"
                  android:layout_marginBottom="15dip"
                  android:layout_marginLeft="15dip"
                  android:layout_toRightOf="@+id/img_address"
                  android:maxLines="5"
                  android:singleLine="false"
                  android:textColor="@color/autoText" /&gt;
  
              &lt;ImageView
                  android:id="@+id/img_phone"
                  android:layout_width="25dip"
                  android:layout_height="25dip"
                  android:layout_below="@id/txt_Address"
                  android:layout_marginBottom="5dip"
                  android:contentDescription="@string/content_description"
                  android:src="@drawable/contact_no" /&gt;
  
              &lt;TextView
                  android:id="@+id/txtPhone"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/txt_Address"
                  android:layout_marginBottom="15dip"
                  android:layout_marginLeft="15dip"
                  android:layout_toRightOf="@id/img_phone"
                  android:textColor="@color/autoText" /&gt;
  
              &lt;ImageView
                  android:id="@+id/img_mobile"
                  android:layout_width="25dip"
                  android:layout_height="25dip"
                  android:layout_below="@id/txtPhone"
                  android:layout_marginBottom="5dip"
                  android:contentDescription="@string/content_description"
                  android:src="@drawable/mobile" /&gt;
  
              &lt;TextView
                  android:id="@+id/txtmobilenumber"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/txtPhone"
                  android:layout_marginBottom="15dip"
                  android:layout_marginLeft="15dip"
                  android:layout_toRightOf="@id/img_mobile"
                  android:textColor="@color/autoText" /&gt;
  
              &lt;ImageView
                  android:id="@+id/img_web"
                  android:layout_width="25dip"
                  android:layout_height="25dip"
                  android:layout_below="@id/txtmobilenumber"
                  android:layout_marginBottom="5dip"
                  android:contentDescription="@string/content_description"
                  android:src="@drawable/www" /&gt;
  
              &lt;TextView
                  android:id="@+id/txtweb"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/txtmobilenumber"
                  android:layout_marginBottom="15dip"
                  android:layout_marginLeft="15dip"
                  android:layout_toRightOf="@id/img_web"
                  android:textColor="@color/autoText" /&gt;
  
              &lt;ImageView
                  android:id="@+id/img_email"
                  android:layout_width="25dip"
                  android:layout_height="25dip"
                  android:layout_below="@id/txtweb"
                  android:layout_marginBottom="15dip"
                  android:contentDescription="@string/content_description"
                  android:src="@drawable/mail" /&gt;
  
              &lt;TextView
                  android:id="@+id/txtemail"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/txtweb"
                  android:layout_marginBottom="15dip"
                  android:layout_marginLeft="15dip"
                  android:layout_toRightOf="@id/img_email"
                  android:textColor="@color/autoText" /&gt;
  
              &lt;Button
                  android:id="@+id/btn_rate_it"
                  android:layout_width="150dip"
                  android:layout_height="wrap_content"
                  android:layout_below="@id/img_email"
                  android:layout_centerHorizontal="true"
                  android:background="@drawable/greenbutton"
                  android:text="@string/rate_it"
                  android:textColor="#ffffff" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;ExpandableListView
              android:id="@+id/expandable_list"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/contactheader"
              android:layout_marginTop="10dip"
              android:groupIndicator="@drawable/group_indicator" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p><strong>IMAGE :- You can see that only listview has scroll so when you scroll the UI become somewhat ugly. I don't want to do like this. I want that whole layout scroll.</strong></p>
  
  <p><img src="https://i.stack.imgur.com/zzwQT.png" alt="enter image description here"></p>