title: Linear layout match parent or weight doesn't work in Coordinator layout
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context="com.now.sexyfacechanger.Activity_PhotoOrGallery"&gt;
  
      &lt;include layout="@layout/content_activity__photo_or_gallery" /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom"
          android:orientation="horizontal"&gt;
  
          &lt;android.support.design.widget.FloatingActionButton
              android:id="@+id/fab_camera"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:src="@android:drawable/ic_menu_camera"
              android:layout_weight="1"/&gt;
  
          &lt;android.support.design.widget.FloatingActionButton
              android:id="@+id/fab_gallery"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:src="@android:drawable/ic_menu_gallery"
              android:layout_weight="1"/&gt;
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Here is the view in android studio design, the linear layout displayed does match the parent:</p>
  
  <p><a href="https://i.stack.imgur.com/cbczv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cbczv.jpg" alt="enter image description here"></a></p>
  
  <p>But the output:</p>
  
  <p><a href="https://i.stack.imgur.com/DXFJj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DXFJj.jpg" alt="enter image description here"></a></p>
  
  <p>The linear layout doesn't match parent or I suspect the layout_weight applied to the two floating buttons doesn't work in Coordinator layout. </p>