title: Android: LinearLayout with match_parent doesn't Match Parent
body: <p>I have the following xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/filters_view_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ededed"
    android:orientation="vertical"
    android:paddingLeft="20dp"
    android:paddingRight="20dp" &gt;
  
     &lt;ExpandableListView
         android:id="@+id/filters_List"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:divider="#00000000"&gt;
     &lt;/ExpandableListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The LinearLayout has a gray background. I want this background to fill the whole screen (the space between the blue bar and the black bar), so I set the height of the LinearLayout to match_parent, but it keeps wrapping the list that contents, so I get a white gap. Here is how it looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/C6ofn.png" alt="enter image description here"></p>
  
  <p>Anybody could give me a hint about how to make this?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: petrumo and Tanis.7x were almost right. Some parent views wasn't taking all the available space. I fixed it, and now all the parent views are taking all the space. The first view that isn't filling the space is the LinearLayout I posted (with ID <code>filters_view_container</code>). It has <code>android:layout_height="match_parent"</code> so I don't understand why is not taking all the space. </p>
  
  <p>I am adding a snapshot of the hierarchy viewer with this LinearLayout selected.</p>
  
  <p><img src="https://i.stack.imgur.com/Mm9Op.png" alt="enter image description here"></p>