title: updated code for space below listview
body: <pre><code>&lt;TextView
          android:id="@+id/_tv_title_labels"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="20dp"
          android:layout_marginTop="30dp"
          android:text="Profile Labels :"
          android:textColor="@drawable/black"
          android:textSize="14dp"
          android:textStyle="bold" /&gt;                 
  
      &lt;RelativeLayout 
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_below="@+id/_tv_title_labels"&gt;
  
          &lt;LinearLayout
              android:id="@+id/asda"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_above="@+id/TableLayout01"
              android:layout_marginLeft="50dp"
              android:layout_marginRight="40dp"&gt;
  
              &lt;ListView
                  android:id="@+id/_lv_labels"
                  android:layout_width="wrap_content"
                  android:layout_height="380dp"
                  android:layout_weight="1"
                  android:choiceMode="multipleChoice" &gt;
              &lt;/ListView&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;TableLayout
              android:id="@+id/TableLayout01"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true" 
              android:layout_alignRight="@+id/asda"
              android:paddingTop="20dp"
              android:gravity="bottom"&gt;
  
              &lt;TableRow
                  android:id="@+id/TableRow01"
                  android:gravity="bottom" &gt;
  
                  &lt;Button
                      android:id="@+id/_btn_scannewitem"
                      android:layout_width="90dp"
                      android:layout_height="wrap_content"
                      android:layout_marginRight="2dp"
                      android:text="Scan New Item" /&gt;
  
                  &lt;Button
                      android:id="@+id/_btn_saveNewItem"
                      android:layout_width="90dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="2dp"
                      android:text="Save Your Item"
                      android:visibility="gone" /&gt;
  
                  &lt;Button
                      android:id="@+id/_btn_changeprofile"
                      android:layout_width="80dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="2dp"
                      android:text="Change Profile" /&gt;
              &lt;/TableRow&gt;
          &lt;/TableLayout&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>But this free space is found above the button when the free space is removed below text. my page should not contain free space.
  i have updated the code as you have suggested but dint find any change in my design.
  Still have the space issue.
  <img src="https://i.stack.imgur.com/siLW6.png" alt="here the space is found below &quot;Profile labels&quot;">  </p>
  
  <p><img src="https://i.stack.imgur.com/siLW6.png" alt="enter image description here"></p>