title: CoordinatorLayout and weight
body: <p>I need to create a Coordinatorlayout with a Linear Layout and a RecyclerView with the same space for both.</p>
  
  <p>I've tried setting layout_weight 0.5 but the RecyclerView is taking all the space.</p>
  
  <p>This is my code.</p>
  
  <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"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:orientation="vertical"&gt;
  
       &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="0.5"
          android:background="@android:color/holo_green_light"&gt;
  
       &lt;/LinearLayout&gt;
  
       &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/lvToDoList"            
          android:layout_weight="0.5"
          android:background="@android:color/holo_blue_bright"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
       &lt;/android.support.v7.widget.RecyclerView&gt;
  
       &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|end|right"
          android:layout_marginBottom="@dimen/activity_vertical_margin"
          android:layout_marginEnd="@dimen/activity_horizontal_margin"
          android:layout_marginRight="@dimen/activity_horizontal_margin"
          android:src="@android:drawable/ic_input_add" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>How can I achive that?</p>
  
  <p>Regards, Diego.</p>