title: Android Fragment does not respect match_parent as height
body: <p>Sorry for the huge code dump, but I'm truly lost.</p>
  <p><strong>MyActivity.java onCreate</strong>:</p>
  <pre><code>super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_singlepane_empty);
  mFragment = new PlacesFragment();
  getSupportFragmentManager().beginTransaction()
                      .add(R.id.root_container, mFragment)
                      .commit();
  </code></pre>
  <p><strong>PlacesFragment.java onCreateView</strong>:</p>
  <pre><code>mRootView = (ViewGroup) inflater.inflate(R.layout.list_content, null);
  return mRootView;
  </code></pre>
  <p><strong>Notes</strong>: <code>mRootView</code> is a <code>ViewGroup</code> global, no problem about it, I believe. <code>PlacesFragment</code> is a <code>ListFragment</code>.</p>
  <p>Layouts:</p>
  <p><strong>activity_singlepane_empty.xml</strong>:</p>
  <pre><code>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:id=&quot;@+id/root_container&quot;
      android:orientation=&quot;vertical&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;#00f&quot;&gt;
      &lt;include layout=&quot;@layout/actionbar&quot;/&gt;
  
      &lt;!-- FRAGMENTS COME HERE! See match_parent above --&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p><strong>list_content.xml</strong>:</p>
  <pre><code>&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:id=&quot;@+id/listContainer&quot;
          android:background=&quot;#990&quot;
          &gt;
      
          &lt;ListView android:id=&quot;@android:id/list&quot;
                  android:layout_width=&quot;match_parent&quot; 
                  android:layout_height=&quot;match_parent&quot;
                  android:drawSelectorOnTop=&quot;false&quot; /&gt;
          
          &lt;TextView android:id=&quot;@id/android:empty&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_gravity=&quot;center&quot;
                  android:gravity=&quot;center&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; 
                  android:text=&quot;@string/no_data_suggest_connection&quot;/&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  <p><strong>Problem:</strong> as you can see, the expected behavior would be to have the empty <code>TextView</code> above to appear centered on the screen. On the design preview in Eclipse, it is OK. Only when added to <code>root_view</code> as a fragment the <code>FrameLayout</code> won't fill the whole screen.</p>
  <p><code>root_container</code> is blue, and <code>FrameLayout</code> is yellowish, see below for debug purposes. <em><strong>Shouldn't the yellow pane fill the whole screen?!?!?!?</strong></em></p>
  <p><img src="https://i.stack.imgur.com/W14iF.png" alt="enter image description here" /></p>