title: ExpandableListView inside a scrollview
body: <p>In my app i want to make a page that have ExpandableListView  and below him CheckBox.</p>
  
  <p>My problem is that my ExpandableListView  is too big and make the CheckBox out of the page.</p>
  
  <p>On smaller screens is not visible at all.</p>
  
  <p>I tried to put ExpandableListView inside scrollview but its not working.</p>
  
  <p>Is there a way to make my design?</p>
  
  <p>Here is my code and a screenshot.</p>
  
  <p>XML code:</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="match_parent"
      android:layout_height="match_parent"
      android:background="@color/White" &gt;
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:fillViewport="true" &gt;
  
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" &gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentTop="true"
                  android:layout_marginTop="15sp"
                  android:text="In this page you can save a group of exercise under one routine."
                  android:textColor="@color/Black"
                  android:textSize="20sp" /&gt;
  
              &lt;ExpandableListView
                  android:id="@+id/instructionsExView"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="true"
                  android:layout_below="@+id/textView1"
                  android:layout_marginTop="15sp" &gt;
              &lt;/ExpandableListView&gt;
  
              &lt;TextView
                  android:id="@+id/textView2"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/instructionsExView"
                  android:layout_marginTop="15sp"
                  android:text="If you want to open the instruction again check &amp;apos;need help?&amp;apos;"
                  android:textColor="@color/Black"
                  android:textSize="20sp" /&gt;
  
              &lt;CheckBox
                  android:id="@+id/checkInstructions"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="true"
                  android:layout_below="@+id/textView2"
                  android:layout_marginTop="16dp"
                  android:checked="false"
                  android:text="dont show again when opening the page"
                  android:textColor="@color/Black" /&gt;
  
          &lt;/RelativeLayout&gt;
      &lt;/ScrollView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Screen shot:</p>
  
  <p><img src="https://i.stack.imgur.com/duEce.png" alt="enter image description here"></p>
  
  <p>EDIT:</p>
  
  <p><img src="https://i.stack.imgur.com/8CeJp.png" alt="enter image description here"></p>