title: Android: tablerow disappears?
body: <p>I have a <code>&lt;TableLayout&gt;</code> with two <code>&lt;TableRow&gt;</code>s. The first row contains two buttons (this works fine), and the second row contains a <code>&lt;FrameLayout&gt;</code> that contains an <code>&lt;ImageView&gt;</code>. My problem is, the second <code>TableRow</code> (and <code>FrameLayout</code>) do not appear until I load an image into the <code>ImageView</code>. I want the <code>FrameLayout</code> to be visible (with its background color) at all times.</p>
  
  <p>I have used <code>android:layout_width="match_parent"</code> and <code>android:layout_height="match_parent"</code> in the <code>&lt;ImageView&gt;</code> and <code>&lt;FrameLayout&gt;</code>, but it does not seem to help.</p>
  
  <p>Here is the layout xml:</p>
  
  <pre><code>&lt;TableLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingTop="5dp"
      android:stretchColumns="1"&gt;
      &lt;TableRow&gt;
          &lt;Button
              android:id="@+id/buttonLoadPhoto"
              android:text="Load..."
              android:textSize="20sp"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1" /&gt;
          &lt;Button
              android:id="@+id/buttonPrintPhoto"
              android:text="Print..."
              android:textSize="20sp"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1" /&gt;
      &lt;/TableRow&gt;
      &lt;TableRow
          android:background="#FF4422"&gt;
          &lt;FrameLayout
              android:id="@+id/frameLayoutPhoto"
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="#303030"&gt;
              &lt;ImageView
                  android:id="@+id/imageViewPhoto"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:scaleType="matrix"&gt;
              &lt;/ImageView&gt;
          &lt;/FrameLayout&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>Note 1: I have included a background color for the offending <code>&lt;TableRow&gt;</code> just so I could narrow down the problem to the <code>TableRow</code> and not the <code>ImageView</code> (the <code>TableRow</code>'s background color does not show up).</p>
  
  <p>Note 2: This is the layout for an <code>Activity</code> that is loaded into a <code>&lt;TabHost&gt;</code>'s <code>&lt;FrameLayout&gt;</code>, in case that matters.</p>
  
  <p>Note 3: I am targeting Android 2.2, and I am using a Xoom to test.</p>
  
  <p>Essentially, I want the <code>&lt;FrameLayout&gt;</code> to take up the remaining space in the tab. Is there an alternative way to do this?</p>
  
  <p>Thanks!</p>