title: ANDROID linearlayout fill remaing space using weight
body: <p>I am trying to get my controls so that I display a control that has a button and an image that takes up the remaining space. I have been looking at using weights I can get it to work on the width but as soon as I use the weight on height nothing is displayed, my code is as follows:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
      &lt;LinearLayout android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:baselineAligned="true" android:weightSum="100"&gt;
  
          &lt;com.example.test.MyImageView
              android:id="@+id/test_img" 
              android:layout_height="0dp"         
              android:layout_width="wrap_content"
              android:layout_weight="75"
              android:scaleType="fitCenter"       
               /&gt;
  
         &lt;Button
          android:id="@+id/RedrawBtn"
          android:layout_height="0dp"     
          android:layout_width="wrap_content"     
          android:layout_weight="25"
          android:text="Button" /&gt; 
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>