title: DrawerLayout must be measured with MeasureSpec.EXACTLY error
body: <p>I am trying to implement a Navigation drawer, but I keep getting this error.
  I saw the similar questions but did not work for me. I have the following layout activity_main2.xml:</p>
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      android:layout_width=&quot;match_parent&quot;
      android:id=&quot;@+id/drawerLayout&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
     &lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;fill_parent&quot;/&gt;
  
     &lt;RelativeLayout
          android:layout_gravity=&quot;left|start&quot;
          android:layout_width=&quot;match_parent&quot;
          android:background=&quot;#fff&quot;
          android:layout_height=&quot;match_parent&quot;&gt;
  
          &lt;ListView
              android:id=&quot;@+id/left_drawer&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:divider=&quot;#eee&quot;
              android:background=&quot;#fff&quot;
              android:dividerHeight=&quot;1dp&quot; /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  <p>On my activity_main2.java</p>
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main2);
      initView();
      if (toolbar != null) {
          //toolbar.setTitle(&quot;&quot;);
          setSupportActionBar(toolbar);
      }
      initDrawer();
  }
  
  private void initView() {
      leftDrawerList = (ListView) findViewById(R.id.left_drawer);
      toolbar = (Toolbar) findViewById(R.id.toolbar);
      drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);
      navigationDrawerAdapter = new ArrayAdapter&lt;String&gt;( MainActivity.this, android.R.layout.simple_list_item_1, leftSliderData);
      leftDrawerList.setAdapter(navigationDrawerAdapter);
      leftDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              if(position == 1){
                  drawerLayout.closeDrawer(Gravity.LEFT);
              }
          }
      });
  }
  
  private void initDrawer() {
      drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.drawer_open, R.string.drawer_close) {
  
          @Override
          public void onDrawerClosed(View drawerView) {
              super.onDrawerClosed(drawerView);
          }
  
          @Override
          public void onDrawerOpened(View drawerView) {
              super.onDrawerOpened(drawerView);
          }
      };
      drawerLayout.setDrawerListener(drawerToggle);
  }
  </code></pre>