title: Wrong size and click behavior for Views in DrawerLayout
body: <p>I have a layout for an <code>Activity</code> that I'm trying to add a navigation drawer to.</p>
  
  <p>The problem is, to work properly, I need to use:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>&lt;RelativeLayout 
  </code></pre>
  
  <p>but it messes things up. My <code>ProgressBar</code> becomes much bigger, my <code>RecyclerView</code> doesn't work, the app logs me out when I click something, etc.</p>
  
  <p>My layout XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context="com.st.mf.UserAreaActivity"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:padding="@dimen/activity_vertical_margin"
      android:background="#fff"&gt;
  
      &lt;ProgressBar
          android:id="@+id/progressBar1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerInParent="true" /&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recyclerView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_alignParentTop="true"
          android:layout_alignParentStart="true"
          android:layout_alignParentLeft="true"
          android:layout_marginTop="20dp" /&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          app:menu="@layout/navigation_menu"
          android:layout_gravity="start"&gt;
      &lt;/android.support.design.widget.NavigationView&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>How can I create my drawer menu without messing everything else up?</p>